gh-110682: Ignore __match_args__
from __instancecheck__
in protocols by sobolevn · Pull Request #110683 · python/cpython (original) (raw)
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request
Release 4.9.0 (December 9, 2023)
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 oftyping_extensions.NewType.__call__
now exactly matches the signature oftyping.NewType.__call__
. Patch by Alex Waygood. - Fix bug with using
@deprecated
on a mixin class. Inheriting from a deprecated class now raises aDeprecationWarning
. Patch by Jelle Zijlstra. @deprecated
now gives a better error message if you pass a non-str
argument to themsg
parameter. Patch by Alex Waygood.@deprecated
is now implemented as a class for better introspectability. Patch by Jelle Zijlstra.- Exclude
__match_args__
fromProtocol
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 theNamedTuple
class's class dictionary. Patch by Alex Waygood, backporting python/cpython#111876. - Improve the error message when trying to call
issubclass()
against aProtocol
that has non-method members. Patch by Alex Waygood (backporting python/cpython#112344, by Randolph Scholz).