bpo-28556: Various updates to typing (#28) (#77) · python/cpython@0230e64 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 0230e64

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)

File tree

4 files changed

lines changed

4 files changed

lines changed

Original file line number Diff line number Diff 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