summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_typing.py
Commit message (Collapse)AuthorAgeFilesLines
* Sync typing.py with upstream.Guido van Rossum2016-06-081-2/+36
| | | | | | | | | (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).
* Added Type[C] implementation to typing.py.Guido van Rossum2016-05-241-0/+28
|
* Fix #27014 -- infinite recursion using typing.py.Guido van Rossum2016-05-181-3/+22
|
* Replace assert statements with self.assertXxx() callsZachary Ware2016-04-191-280/+304
| | | | Sync with upstream, see github.com/python/typing/pull/205
* typing.py: Consider ellipsis in TupleMeta.__eq__. By Kalle Tuure. ↵Guido van Rossum2016-04-181-0/+6
| | | | github.com/python/typing/pull/201.
* Sync test_typing.py with upstream git repo (typing.py was already synced).Guido van Rossum2016-04-181-0/+20
|
* Many changes from the upstream repo (https://github.com/python/typing).Guido van Rossum2016-04-051-27/+129
| | | | | | | | | | | | | | | | | | | | | | | | 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/+61
|
* Issue #25665: Test pickling with all protocols in test_typing.Serhiy Storchaka2015-11-201-8/+10
|
* Issue #25665: Make NamedTuple picklable.Guido van Rossum2015-11-191-0/+8
|
* Remove unused imports from test_typing.py.Guido van Rossum2015-11-191-5/+0
|
* Issue #25472: In B[<type>], insert B in front of __bases__, to make the ↵Guido van Rossum2015-11-191-0/+30
| | | | __dict__ descriptor work.
* Issue #25390: typing: Don't crash on Union[str, Pattern].Guido van Rossum2015-10-191-0/+4
|
* Fix issue #24635.Guido van Rossum2015-09-041-3/+14
|
* Issue #23973: Update typing.py from GitHub repo.Guido van Rossum2015-08-051-201/+74
|
* Preliminary typing.py, anticipating provisional acceptance of PEP 484.Guido van Rossum2015-05-221-0/+1373
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.