summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28079: Update typing and test typing from python/typing repo.Guido van Rossum2016-09-111-102/+188
| | | | Ivan Levkivskyi (3.6 version)
* Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations.Yury Selivanov2016-09-091-13/+133
| | | | Patch by Ivan Levkivskyi.
* Issue #24254: Drop cls.__definition_order__.Eric Snow2016-09-081-1/+0
|
* Issue #24254: Preserve class attribute definition order.Eric Snow2016-09-051-0/+1
|
* 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.