bpo-28556: Various updates to typing (#28)

various updates from upstream python/typing repo:

- Added typing.Counter and typing.ChainMap generics
- More flexible typing.NamedTuple
- Improved generic ABC caching
- More tests
- Bugfixes
- Other updates

* Add Misc/NEWS entry

* Add issue number
This commit is contained in:
Ivan Levkivskyi 2017-02-13 22:50:14 +01:00 committed by Mariatta
parent 3cdbd68ce8
commit b692dc8475
4 changed files with 335 additions and 58 deletions

View file

@ -0,0 +1,14 @@
"""Module for testing the behavior of generics across different modules."""
from typing import TypeVar, Generic
T = TypeVar('T')
class A(Generic[T]):
pass
class B(Generic[T]):
class A(Generic[T]):
pass