]> granicus.if.org Git - python/commit
Sync typing.py with upstream.
authorGuido van Rossum <guido@python.org>
Wed, 8 Jun 2016 18:19:11 +0000 (11:19 -0700)
committerGuido van Rossum <guido@python.org>
Wed, 8 Jun 2016 18:19:11 +0000 (11:19 -0700)
commit91185fe0284a04162e0b3425b53be49bdbfad67d
treed7ce0fa5970b79c29850d61a0e7b79479c39e874
parent07a9fcdc86b740ac5c5108d10418e7668a06e3df
Sync typing.py with upstream.

(Upstream is https://github.com/python/typing)

- Add TYPE_CHECKING (false at runtime, true in type checkers) (upstream #230).
- Avoid error on Union[xml.etree.cElementTree.Element, str] (upstream #229).
- Repr of Tuple[()] should be 'Tuple[()]' (upstream #231).
- Add NewType() (upstream #189).
Lib/test/test_typing.py
Lib/typing.py