github python/typing_extensions 4.9.0rc1

latest releases: 4.12.2, 4.12.1, 4.12.0...
pre-release11 months ago
  • 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).

Don't miss a new typing_extensions release

NewReleases is sending notifications on new releases.