Skip to content

Commit 0230e64

Browse files
authored
bpo-28556: Various updates to typing (#28) (#77)
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)
1 parent 2d0c228 commit 0230e64

File tree

4 files changed

+335
-58
lines changed

4 files changed

+335
-58
lines changed

Lib/test/mod_generics_cache.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""Module for testing the behavior of generics across different modules."""
2+
3+
from typing import TypeVar, Generic
4+
5+
T = TypeVar('T')
6+
7+
8+
class A(Generic[T]):
9+
pass
10+
11+
12+
class B(Generic[T]):
13+
class A(Generic[T]):
14+
pass

0 commit comments

Comments
 (0)