summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
Commit message (Collapse)AuthorAgeFilesLines
* Update typing.py and test_typing.py from upstream ↵Guido van Rossum2016-09-271-339/+302
| | | | (https://github.com/python/typing)
* Issue #28079: Update typing and test typing from python/typing repo.Guido van Rossum2016-09-111-61/+267
| | | | Ivan Levkivskyi (3.5 version)
* A new version of typing.py from https://github.com/python/typing.Guido van Rossum2016-08-231-25/+43
|
* Sync typing.py with upstream.Guido van Rossum2016-06-081-2/+40
| | | | | | | | | (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).
* Comment/docstring tweaks for typing.py.Guido van Rossum2016-05-261-1/+2
|
* Added Type[C] implementation to typing.py.Guido van Rossum2016-05-241-1/+33
|
* Fix #27014 -- infinite recursion using typing.py.Guido van Rossum2016-05-181-11/+9
|
* typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. ↵Guido van Rossum2016-04-181-1/+2
| | | | github.com/python/typing/pull/201.
* Issue #25609: Backport typing.ContextManager.Brett Cannon2016-04-151-0/+7
| | | | | | This has no semantic impact as the class is guarded with a hasattr() check; this is being done to keep typing.py in sync between Python 3.5 and 3.6 as requested by Guido.
* Add Text=str. Make ItemsView derive from AbstractSet, not Set (which is the ↵Guido van Rossum2016-04-051-1/+6
| | | | concrete set).
* Many changes from the upstream repo (https://github.com/python/typing).Guido van Rossum2016-04-051-152/+242
| | | | | | | | | | | | | | | | | | | | | | | | This syncs to rev 7b43ada77821d23e55e3a4b35f6055a59b9e1ad7 there. Summary: - Add typing.DefaultDict (as a generic variant of collections.defaultdict). - Use collections.Reversible if it exists (only relevant for Python 3.6). - Revamped generic class behavior to conform to updated PEP 484. - Improve speed of Generic.__new__. - Make sure __init__ is called for new Generic instances. Fix issue #26391. - Refactor async support to be compatible with 3.2, 3.3, 3.4. - Remove 'io' and 're' from __all__ (they still exist, just not included by "import *"). Fix issue #26234. - Change @overload -- you can now use it outside stubs (you still cannot call the decorated function though).
* Add Awaitable, AsyncIterable, AsyncIterator to typing.py.Guido van Rossum2015-12-041-0/+15
|
* Issue #25665: Make NamedTuple picklable.Guido van Rossum2015-11-191-0/+5
|
* Issue #25472: In B[<type>], insert B in front of __bases__, to make the ↵Guido van Rossum2015-11-191-1/+1
| | | | __dict__ descriptor work.
* Issue #25390: typing: Don't crash on Union[str, Pattern].Guido van Rossum2015-10-191-0/+3
|
* Fix issue #24635.Guido van Rossum2015-09-041-5/+10
|
* Issue #23973: Update typing.py from GitHub repo.Guido van Rossum2015-08-051-147/+76
|
* Preliminary typing.py, anticipating provisional acceptance of PEP 484.Guido van Rossum2015-05-221-0/+1714
There area bunch of TODOs here, but the biggest (not mentioned in the file) is that I'm going to take out __instancecheck__ and __subclasscheck__. However my personal schedule is such that I probably won't have time for these before Larry tags beta 1. But I will try -- this commit is mostly to make sure that typing.py doesn't completely miss the train. PS. I'm tracking issues at https://github.com/ambv/typehinting/issues.