summaryrefslogtreecommitdiffstats
path: root/Lib/typing.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #28790: Fix error when using Generic and __slots__ (Ivan L)Guido van Rossum2016-11-291-3/+15
|
* Issue #28556: upstream improvements to docstrings and error messages by Ivan ↵Guido van Rossum2016-11-211-40/+44
| | | | Levkivskyi (#331)
* Issue #28556: two more small upstream changes by Ivan Levkivskyi (#329, #330)Guido van Rossum2016-11-191-0/+2
|
* Issue #28556: Allow keyword syntax for NamedTuple (Ivan Levkivskyi) ↵Guido van Rossum2016-11-151-37/+39
| | | | (upstream #321)
* Issue #28649: fix second issue with _ForwardRef (#328)Guido van Rossum2016-11-101-1/+1
|
* Issue #28649: fix first issue with _ForwardRef (#327)Guido van Rossum2016-11-101-10/+3
|
* Issue #28649: typing-clear-caches.patchGuido van Rossum2016-11-091-0/+4
|
* Issue #28556: More typing.py updates from upstream.Guido van Rossum2016-11-091-134/+72
|
* Issue #28556: updates to typing.py (add Coroutine, prohibit Generic[T]())Guido van Rossum2016-10-291-8/+23
|
* Issue #28556: updates to typing.py (fix copy, deepcopy, pickle)Guido van Rossum2016-10-291-0/+8
|
* Issue #28556: updates to typing.pyGuido van Rossum2016-10-291-334/+404
|
* Two minor typing.py fixes (upstream #305)Guido van Rossum2016-10-221-5/+1
|
* Fix indentGuido van Rossum2016-10-211-3/+3
|
* Sync typing.py from upstreamGuido van Rossum2016-10-211-28/+79
|
* Issue #28339: Remove ByteString.register(memoryview(...)) from typing.py.Guido van Rossum2016-10-091-3/+0
|
* Merge further typing.py changes from upstream.Guido van Rossum2016-10-091-1/+4
|
* More updates from upstream typing.pyGuido van Rossum2016-10-031-35/+70
|
* 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.