Sourced from typing-extensions's releases.
4.13.1
This is a bugfix release fixing two edge cases that appear on old bugfix releases of CPython.
Bugfixes:
- Fix regression in 4.13.0 on Python 3.10.2 causing a
TypeErrorwhen usingConcatenate. Patch by Daraan.- Fix
TypeErrorwhen usingevaluate_forward_refon Python 3.10.1-2 and 3.9.8-10. Patch by Daraan.4.13.0
New features:
- Add
typing_extensions.TypeFormfrom PEP 747. Patch by Jelle Zijlstra.- Add
typing_extensions.get_annotations, a backport ofinspect.get_annotationsthat adds features specified by PEP 649. Patches by Jelle Zijlstra and Alex Waygood.- Backport
evaluate_forward_reffrom CPython PR #119891 to evaluateForwardRefs. Patch by Daraan, backporting a CPython PR by Jelle Zijlstra.Bugfixes and changed features:
- Update PEP 728 implementation to a newer version of the PEP. Patch by Jelle Zijlstra.
- Copy the coroutine status of functions and methods wrapped with
@typing_extensions.deprecated. Patch by Sebastian Rittau.- Fix bug where
TypeAliasTypeinstances could be subscripted even where they were not generic. Patch by Daraan.- Fix bug where a subscripted
TypeAliasTypeinstance did not have all attributes of the originalTypeAliasTypeinstance on older Python versions. Patch by Daraan and Alex Waygood.- Fix bug where subscripted
TypeAliasTypeinstances (and some other subscripted objects) had wrong parameters if they were directly subscripted with anUnpackobject. Patch by Daraan.- Backport to Python 3.10 the ability to substitute
...in genericCallablealiases that have aConcatenatespecial form as their argument. Patch by Daraan.- Extended the
Concatenatebackport for Python 3.8-3.10 to now acceptEllipsisas an argument. Patch by Daraan.- Fix backport of
get_type_hintsto reflect Python 3.11+ behavior which does not addUnion[..., NoneType]to annotations that have aNonedefault value anymore. This fixes wrapping ofAnnotatedin an unwantedOptionalin such cases. Patch by Daraan.- Fix error in subscription of
Unpackaliases causing nested Unpacks to not be resolved correctly. Patch by Daraan.- Backport CPython PR #124795: fix
TypeAliasTypenot raising an error on non-tuple inputs fortype_params. Patch by Daraan.- Fix that lists and
...could not be used for parameter expressions forTypeAliasType
... (truncated)
Sourced from typing-extensions's changelog.
Release 4.13.1 (April 3, 2025)
Bugfixes:
- Fix regression in 4.13.0 on Python 3.10.2 causing a
TypeErrorwhen usingConcatenate. Patch by Daraan.- Fix
TypeErrorwhen usingevaluate_forward_refon Python 3.10.1-2 and 3.9.8-10. Patch by Daraan.Release 4.13.0 (March 25, 2025)
No user-facing changes since 4.13.0rc1.
Release 4.13.0rc1 (March 18, 2025)
New features:
- Add
typing_extensions.TypeFormfrom PEP 747. Patch by Jelle Zijlstra.- Add
typing_extensions.get_annotations, a backport ofinspect.get_annotationsthat adds features specified by PEP 649. Patches by Jelle Zijlstra and Alex Waygood.- Backport
evaluate_forward_reffrom CPython PR #119891 to evaluateForwardRefs. Patch by Daraan, backporting a CPython PR by Jelle Zijlstra.Bugfixes and changed features:
- Update PEP 728 implementation to a newer version of the PEP. Patch by Jelle Zijlstra.
- Copy the coroutine status of functions and methods wrapped with
@typing_extensions.deprecated. Patch by Sebastian Rittau.- Fix bug where
TypeAliasTypeinstances could be subscripted even where they were not generic. Patch by Daraan.- Fix bug where a subscripted
TypeAliasTypeinstance did not have all attributes of the originalTypeAliasTypeinstance on older Python versions. Patch by Daraan and Alex Waygood.- Fix bug where subscripted
TypeAliasTypeinstances (and some other subscripted objects) had wrong parameters if they were directly subscripted with anUnpackobject. Patch by Daraan.- Backport to Python 3.10 the ability to substitute
...in genericCallablealiases that have aConcatenatespecial form as their argument. Patch by Daraan.- Extended the
Concatenatebackport for Python 3.8-3.10 to now acceptEllipsisas an argument. Patch by Daraan.- Fix backport of
get_type_hintsto reflect Python 3.11+ behavior which does not addUnion[..., NoneType]to annotations that have aNonedefault value anymore. This fixes wrapping ofAnnotatedin an unwantedOptionalin such cases. Patch by Daraan.- Fix error in subscription of
Unpackaliases causing nested Unpacks to not be resolved correctly. Patch by Daraan.
... (truncated)
45a8847
Prepare release 4.13.1 (#573)f264e58
Move CI to "ubuntu-latest" (round 2) (#570)5ce0e69
Fix TypeError with evaluate_forward_ref on some 3.10 and 3.9 versions
(#558)304f5cb
Add SQLAlchemy to third-party daily tests (#561)ebe2b94
Fix duplicated keywords for typing._ConcatenateGenericAlias in 3.10.2
(#557)9f93d6f
Add intersphinx links for 3.13 typing features (#550)c893401
Prepare release 4.13.0 (#555)6239d86
Use latest Python docs as intersphinx base rather than 3.12 docs (#549)671a337
Fix 'Test and lint' workflow running on forks (#551)e77e8e2
Disable pyanalyze tests for now (#554)