Skip to content

Commit

Permalink
bpo-28556: Various updates to typing (#28)
Browse files Browse the repository at this point in the history
 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
  • Loading branch information
ilevkivskyi authored and Mariatta committed Feb 13, 2017
1 parent 3cdbd68 commit b692dc8
Show file tree
Hide file tree
Showing 4 changed files with 335 additions and 58 deletions.
14 changes: 14 additions & 0 deletions Lib/test/mod_generics_cache.py
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit b692dc8

Please sign in to comment.