]> granicus.if.org Git - python/commit
Many changes from the upstream repo (https://github.com/python/typing).
authorGuido van Rossum <guido@python.org>
Tue, 5 Apr 2016 15:28:52 +0000 (08:28 -0700)
committerGuido van Rossum <guido@python.org>
Tue, 5 Apr 2016 15:28:52 +0000 (08:28 -0700)
commitbd5b9a074241c6146bdcacef9a1e84f48c7c8d8a
tree019b5a1657f7b4a9a78f18daf5449a89c882539c
parent0f7673943a4ad633c59071b24b1f170a0df442c3
Many changes from the upstream repo (https://github.com/python/typing).

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).
Lib/test/test_typing.py
Lib/typing.py