openai-chat-app-quickstart
openai-chat-app-quickstart copied to clipboard
Bump typing-extensions from 4.11.0 to 4.12.0
Bumps typing-extensions from 4.11.0 to 4.12.0.
Release notes
Sourced from typing-extensions's releases.
4.12.0
This release focuses on compatibility with the upcoming release of Python 3.13. Most changes are related to the implementation of type parameter defaults (PEP 696).
Thanks to all of the people who contributed patches, especially Alex Waygood, who did most of the work adapting typing-extensions to the CPython PEP 696 implementation.
There is a single change since 4.12.0rc1:
- Fix incorrect behaviour of
typing_extensions.ParamSpecon Python 3.8 and 3.9 that meant thatisinstance(typing_extensions.ParamSpec("P"), typing.TypeVar)would have a different result in some situations depending on whether or not a profiling function had been set usingsys.setprofile. Patch by Alex Waygood.Changes included in 4.12.0rc1:
- Improve the implementation of type parameter defaults (PEP 696)
- Backport the
typing.NoDefaultsentinel object from Python 3.13. TypeVars, ParamSpecs and TypeVarTuples without default values now have their__default__attribute set to this sentinel value.- TypeVars, ParamSpecs and TypeVarTuples now have a
has_default()method, matchingtyping.TypeVar,typing.ParamSpecandtyping.TypeVarTupleon Python 3.13+.- TypeVars, ParamSpecs and TypeVarTuples with
default=Nonepassed to their constructors now have their__default__attribute set toNoneat runtime rather thantypes.NoneType.- Fix most tests for
TypeVar,ParamSpecandTypeVarTupleon Python 3.13.0b1 and newer.- Backport CPython PR #118774, allowing type parameters without default values to follow those with default values in some type parameter lists. Patch by Alex Waygood, backporting a CPython PR by Jelle Zijlstra.
- It is now disallowed to use a
TypeVarwith a default value after aTypeVarTuplein a type parameter list. This matches the CPython implementation of PEP 696 on Python 3.13+.- Fix bug in PEP-696 implementation where a default value for a
ParamSpecwould be cast to a tuple if a list was provided. Patch by Alex Waygood.- Fix
Protocoltests on Python 3.13.0a6 and newer. 3.13.0a6 adds a new__static_attributes__attribute to all classes in Python, which broke some assumptions made by the implementation oftyping_extensions.Protocol. Similarly, 3.13.0b1 adds the new__firstlineno__attribute to all classes.- Fix
AttributeErrorwhen usingtyping_extensions.runtime_checkablein combination withtyping.Protocolon Python 3.12.2 or newer. Patch by Alex Waygood.- At runtime,
assert_nevernow includes the repr of the argument
... (truncated)
Changelog
Sourced from typing-extensions's changelog.
Release 4.12.0 (May 23, 2024)
This release is mostly the same as 4.12.0rc1 but fixes one more longstanding bug.
- Fix incorrect behaviour of
typing_extensions.ParamSpecon Python 3.8 and 3.9 that meant thatisinstance(typing_extensions.ParamSpec("P"), typing.TypeVar)would have a different result in some situations depending on whether or not a profiling function had been set usingsys.setprofile. Patch by Alex Waygood.Release 4.12.0rc1 (May 16, 2024)
This release focuses on compatibility with the upcoming release of Python 3.13. Most changes are related to the implementation of type parameter defaults (PEP 696).
Thanks to all of the people who contributed patches, especially Alex Waygood, who did most of the work adapting typing-extensions to the CPython PEP 696 implementation.
Full changelog:
- Improve the implementation of type parameter defaults (PEP 696)
- Backport the
typing.NoDefaultsentinel object from Python 3.13. TypeVars, ParamSpecs and TypeVarTuples without default values now have their__default__attribute set to this sentinel value.- TypeVars, ParamSpecs and TypeVarTuples now have a
has_default()method, matchingtyping.TypeVar,typing.ParamSpecandtyping.TypeVarTupleon Python 3.13+.- TypeVars, ParamSpecs and TypeVarTuples with
default=Nonepassed to their constructors now have their__default__attribute set toNoneat runtime rather thantypes.NoneType.- Fix most tests for
TypeVar,ParamSpecandTypeVarTupleon Python 3.13.0b1 and newer.- Backport CPython PR #118774, allowing type parameters without default values to follow those with default values in some type parameter lists. Patch by Alex Waygood, backporting a CPython PR by Jelle Zijlstra.
- It is now disallowed to use a
TypeVarwith a default value after aTypeVarTuplein a type parameter list. This matches the CPython implementation of PEP 696 on Python 3.13+.- Fix bug in PEP-696 implementation where a default value for a
ParamSpecwould be cast to a tuple if a list was provided. Patch by Alex Waygood.- Fix
Protocoltests on Python 3.13.0a6 and newer. 3.13.0a6 adds a new__static_attributes__attribute to all classes in Python, which broke some assumptions made by the implementation oftyping_extensions.Protocol. Similarly, 3.13.0b1 adds the new__firstlineno__attribute to all classes.
... (truncated)
Commits
f90a8dcPrepare release 4.12.0 (#408)118e1a6Make sureisinstance(typing_extensions.ParamSpec("P"), typing.TypeVar)is u...910141aAdd security documentation (#403)0dbc7c9Prepare release 4.12.0rc1 (#402)1da5d3dUpdate actions/setup-python (#401)72298f04.12.0a2 (#400)465ba78Fix publish workflow (#399)21fde1fPrepare releaes 4.12.0a1 (#398)63d8277Add workflow for Trusted Publishing (#395)074d053Backport PEP-696 specialisation on Python >=3.11.1 (#397)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)