This feature release adds typing_extensions.ReadOnly, as specified
by PEP 705, and makes various other improvements, especially to
@typing_extensions.deprecated().
There are no changes since 4.9.0rc1.
4.9.0rc1
Add support for PEP 705, adding typing_extensions.ReadOnly. Patch
by Jelle Zijlstra.
All parameters on NewType.__call__ are now positional-only. This means that
the signature of typing_extensions.NewType.__call__ now exactly matches the
signature of typing.NewType.__call__. Patch by Alex Waygood.
Fix bug with using @deprecated on a mixin class. Inheriting from a
deprecated class now raises a DeprecationWarning. Patch by Jelle Zijlstra.
@deprecated now gives a better error message if you pass a non-str
argument to the msg parameter. Patch by Alex Waygood.
@deprecated is now implemented as a class for better introspectability.
Patch by Jelle Zijlstra.
Exclude __match_args__ from Protocol members.
Backport of python/cpython#110683 by Nikita Sobolev.
When creating a typing_extensions.NamedTuple class, ensure __set_name__
is called on all objects that define __set_name__ and exist in the values
of the NamedTuple class's class dictionary. Patch by Alex Waygood,
backporting python/cpython#111876.
Improve the error message when trying to call issubclass() against a
Protocol that has non-method members. Patch by Alex Waygood (backporting
python/cpython#112344, by Randolph Scholz).
This feature release adds typing_extensions.ReadOnly, as specified
by PEP 705, and makes various other improvements, especially to
@typing_extensions.deprecated().
There are no changes since 4.9.0rc1.
Release 4.9.0rc1 (November 29, 2023)
Add support for PEP 705, adding typing_extensions.ReadOnly. Patch
by Jelle Zijlstra.
All parameters on NewType.__call__ are now positional-only. This means that
the signature of typing_extensions.NewType.__call__ now exactly matches the
signature of typing.NewType.__call__. Patch by Alex Waygood.
Fix bug with using @deprecated on a mixin class. Inheriting from a
deprecated class now raises a DeprecationWarning. Patch by Jelle Zijlstra.
@deprecated now gives a better error message if you pass a non-str
argument to the msg parameter. Patch by Alex Waygood.
@deprecated is now implemented as a class for better introspectability.
Patch by Jelle Zijlstra.
Exclude __match_args__ from Protocol members.
Backport of python/cpython#110683 by Nikita Sobolev.
When creating a typing_extensions.NamedTuple class, ensure __set_name__
is called on all objects that define __set_name__ and exist in the values
of the NamedTuple class's class dictionary. Patch by Alex Waygood,
backporting python/cpython#111876.
Improve the error message when trying to call issubclass() against a
Protocol that has non-method members. Patch by Alex Waygood (backporting
python/cpython#112344, by Randolph Scholz).
You can trigger a rebase of this PR 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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps typing-extensions from 4.8.0 to 4.9.0.
Release notes
Sourced from typing-extensions's releases.
Changelog
Sourced from typing-extensions's changelog.
Commits
fc461d6
Release 4.9.0 (#313)f82d636
Prepare release 4.9.0rc1 (#306)daa7931
Run typed-argument-parser tests on 3.12 in the daily workflow (#307)0b0166d
Add support for PEP 705 (#284)db6f9b4
Update@deprecated
implementation (#302)18ae2b3
Backport recent improvements to the error message when trying to call `issubc...e4d9d8b
fix typo inoverride()
docstring (#305)4f91502
Backport recent change toNamedTuple
classes regarding__set_name__
(#303)7af82f9
@deprecated
: will be in warnings, not typing (#298)f9f257c
Fix deprecating a mixin; warn when inheriting from a deprecated class (#294)You can trigger a rebase of this PR 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