This feature release provides improvements to various recently
added features, most importantly type parameter defaults (PEP 696).
There are no changes since 4.11.0rc1.
Changes since 4.10.0:
Fix tests on Python 3.13.0a5. Patch by Jelle Zijlstra.
Fix the runtime behavior of type parameters with defaults (PEP 696).
Patch by Nadir Chowdhury.
Fix minor discrepancy between error messages produced by typing
and typing_extensions on Python 3.10. Patch by Jelle Zijlstra.
When include_extra=False, get_type_hints() now strips ReadOnly from the annotation.
4.11.0rc1
Fix tests on Python 3.13.0a5. Patch by Jelle Zijlstra.
Fix the runtime behavior of type parameters with defaults (PEP 696).
Patch by Nadir Chowdhury.
Fix minor discrepancy between error messages produced by typing
and typing_extensions on Python 3.10. Patch by Jelle Zijlstra.
When include_extra=False, get_type_hints() now strips ReadOnly from the annotation.
4.10.0
Release 4.10.0 (February 25, 2024)
This feature release adds support for PEP 728 (TypedDict with extra
items) and PEP 742 (TypeIs).
There are no changes since 4.10.0rc1.
4.10.0rc1
Release 4.10.0rc1 (February 17, 2024)
Add support for PEP 728, supporting the closed keyword argument and the
special __extra_items__ key for TypedDict. Patch by Zixuan James Li.
Add support for PEP 742, adding typing_extensions.TypeIs. Patch
by Jelle Zijlstra.
Drop runtime error when a read-only TypedDict item overrides a mutable
one. Type checkers should still flag this as an error. Patch by Jelle
Zijlstra.
Speedup issubclass() checks against simple runtime-checkable protocols by
around 6% (backporting python/cpython#112717, by Alex
Waygood).
Fix a regression in the implementation of protocols where typing.Protocol
classes that were not marked as @runtime_checkable would be unnecessarily
introspected, potentially causing exceptions to be raised if the protocol had
problematic members. Patch by Alex Waygood, backporting
This feature release provides improvements to various recently
added features, most importantly type parameter defaults (PEP 696).
There are no changes since 4.11.0rc1.
Release 4.11.0rc1 (March 24, 2024)
Fix tests on Python 3.13.0a5. Patch by Jelle Zijlstra.
Fix the runtime behavior of type parameters with defaults (PEP 696).
Patch by Nadir Chowdhury.
Fix minor discrepancy between error messages produced by typing
and typing_extensions on Python 3.10. Patch by Jelle Zijlstra.
When include_extra=False, get_type_hints() now strips ReadOnly from the annotation.
Release 4.10.0 (February 24, 2024)
This feature release adds support for PEP 728 (TypedDict with extra
items) and PEP 742 (TypeIs).
There are no changes since 4.10.0rc1.
Release 4.10.0rc1 (February 17, 2024)
Add support for PEP 728, supporting the closed keyword argument and the
special __extra_items__ key for TypedDict. Patch by Zixuan James Li.
Add support for PEP 742, adding typing_extensions.TypeIs. Patch
by Jelle Zijlstra.
Drop runtime error when a read-only TypedDict item overrides a mutable
one. Type checkers should still flag this as an error. Patch by Jelle
Zijlstra.
Speedup issubclass() checks against simple runtime-checkable protocols by
around 6% (backporting python/cpython#112717, by Alex
Waygood).
Fix a regression in the implementation of protocols where typing.Protocol
classes that were not marked as @runtime_checkable would be unnecessarily
introspected, potentially causing exceptions to be raised if the protocol had
problematic members. Patch by Alex Waygood, backporting
python/cpython#113401.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps typing-extensions from 4.9.0 to 4.11.0.
Release notes
Sourced from typing-extensions's releases.
... (truncated)
Changelog
Sourced from typing-extensions's changelog.
Commits
d4d929d
Prepare release 4.11.0 (#363)94bec44
Prepare release 4.11.0rc1 (#362)10648b6
Fix tests on 3.13.0a5 (#358)8170fc7
Fix runtime behaviour of PEP 696 (#293)d34c389
Try to fix GH actions syntax (#355)d409ec9
Run CPython test suite in our CI (#353)9d1689e
Fix indentation in TypedDict docs (#352)4fdc09d
Third-party tests: don't run pydantic tests on pypy (#351)3304a5f
Stabilise third party tests (#348)c3dc681
Make sure thatReadOnly
is removed when using `get_type_hints(include_extra...Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show