Visitar URL original
bpo-28556: Various updates to typing (#28) by Mariatta · Pull Request #77 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-28556: Various updates to typing (#28)
 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

(cherry picked from commit b692dc8)
  • Loading branch information
ilevkivskyi authored and Mariatta committed Feb 13, 2017
commit 8d3f5f6ec6f94c27eb7a2c6a9ac40879b63b0745
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