Kaydet (Commit) b692dc84 authored tarafından Ivan Levkivskyi's avatar Ivan Levkivskyi Kaydeden (comit) Mariatta

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
üst 3cdbd68c
"""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
This diff is collapsed.
This diff is collapsed.
...@@ -227,6 +227,10 @@ Extension Modules ...@@ -227,6 +227,10 @@ Extension Modules
Library Library
------- -------
- Issue #28556: Various updates to typing module: typing.Counter, typing.ChainMap,
improved ABC caching, etc. Original PRs by Jelle Zijlstra, Ivan Levkivskyi,
Manuel Krebber, and Łukasz Langa.
- Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python - Issue #29100: Fix datetime.fromtimestamp() regression introduced in Python
3.6.0: check minimum and maximum years. 3.6.0: check minimum and maximum years.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment