Skip to content

Commit

Permalink
bpo-28556: Various updates to typing (#28) (#77)
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


(cherry picked from commit b692dc8)
  • Loading branch information
Mariatta committed Feb 14, 2017
1 parent 2d0c228 commit 0230e64
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
@@ -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

0 comments on commit 0230e64

Please sign in to comment.