4.9.0rc1
Pre-release
Pre-release
- 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 oftyping_extensions.NewType.__call__now exactly matches the
signature oftyping.NewType.__call__. Patch by Alex Waygood. - Fix bug with using
@deprecatedon a mixin class. Inheriting from a
deprecated class now raises aDeprecationWarning. Patch by Jelle Zijlstra. @deprecatednow gives a better error message if you pass a non-str
argument to themsgparameter. Patch by Alex Waygood.@deprecatedis now implemented as a class for better introspectability.
Patch by Jelle Zijlstra.- Exclude
__match_args__fromProtocolmembers.
Backport of python/cpython#110683 by Nikita Sobolev. - When creating a
typing_extensions.NamedTupleclass, ensure__set_name__
is called on all objects that define__set_name__and exist in the values
of theNamedTupleclass's class dictionary. Patch by Alex Waygood,
backporting python/cpython#111876. - Improve the error message when trying to call
issubclass()against a
Protocolthat has non-method members. Patch by Alex Waygood (backporting
python/cpython#112344, by Randolph Scholz).