Skip to content

4.13.0

Compare
Choose a tag to compare
@hauntsaninja hauntsaninja released this 26 Mar 03:46
· 28 commits to main since this release
c893401

New features:

  • Add typing_extensions.TypeForm from PEP 747. Patch by
    Jelle Zijlstra.
  • Add typing_extensions.get_annotations, a backport of
    inspect.get_annotations that adds features specified
    by PEP 649. Patches by Jelle Zijlstra and Alex Waygood.
  • Backport evaluate_forward_ref from CPython PR
    #119891 to evaluate ForwardRefs.
    Patch by Daraan, backporting a CPython PR by Jelle Zijlstra.

Bugfixes and changed features:

  • Update PEP 728 implementation to a newer version of the PEP. Patch by Jelle Zijlstra.
  • Copy the coroutine status of functions and methods wrapped
    with @typing_extensions.deprecated. Patch by Sebastian Rittau.
  • Fix bug where TypeAliasType instances could be subscripted even
    where they were not generic. Patch by Daraan.
  • Fix bug where a subscripted TypeAliasType instance did not have all
    attributes of the original TypeAliasType instance on older Python versions.
    Patch by Daraan and Alex Waygood.
  • Fix bug where subscripted TypeAliasType instances (and some other
    subscripted objects) had wrong parameters if they were directly
    subscripted with an Unpack object.
    Patch by Daraan.
  • Backport to Python 3.10 the ability to substitute ... in generic Callable
    aliases that have a Concatenate special form as their argument.
    Patch by Daraan.
  • Extended the Concatenate backport for Python 3.8-3.10 to now accept
    Ellipsis as an argument. Patch by Daraan.
  • Fix backport of get_type_hints to reflect Python 3.11+ behavior which does not add
    Union[..., NoneType] to annotations that have a None default value anymore.
    This fixes wrapping of Annotated in an unwanted Optional in such cases.
    Patch by Daraan.
  • Fix error in subscription of Unpack aliases causing nested Unpacks
    to not be resolved correctly. Patch by Daraan.
  • Backport CPython PR #124795:
    fix TypeAliasType not raising an error on non-tuple inputs for type_params.
    Patch by Daraan.
  • Fix that lists and ... could not be used for parameter expressions for TypeAliasType
    instances before Python 3.11.
    Patch by Daraan.
  • Fix error on Python 3.10 when using typing.Concatenate and
    typing_extensions.Concatenate together. Patch by Daraan.
  • Backport of CPython PR #109544
    to reflect Python 3.13+ behavior: A value assigned to __total__ in the class body of a
    TypedDict will be overwritten by the total argument of the TypedDict constructor.
    Patch by Daraan, backporting a CPython PR by Jelle Zijlstra.
  • isinstance(typing_extensions.Unpack[...], TypeVar) now evaluates to False on Python 3.11
    and newer, but remains True on versions before 3.11.
    Patch by Daraan.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy