Skip to content

Commit

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

Contributed by Ivan Levkivskyi @ilevkivskyi

(cherry picked from commit b692dc8)
  • Loading branch information
Mariatta committed Feb 13, 2017
1 parent af456b2 commit 9c5684e
Show file tree
Hide file tree
Showing 4 changed files with 338 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

0 comments on commit 9c5684e

Please sign in to comment.