Runtime support for PEP 702, adding typing_extensions.deprecated. Patch
by Jelle Zijlstra.
Add better default value for TypeVar default parameter, PEP 696. Enables
runtime check if None was passed as default. Patch by Marc Mueller (@cdce8p).
The @typing_extensions.override decorator now sets the .__override__
attribute. Patch by Steven Troxler.
Fix get_type_hints() on cross-module inherited TypedDict in 3.9 and 3.10.
Patch by Carl Meyer.
Add frozen_default parameter on dataclass_transform. Patch by Erik De Bonte.
Release 4.4.0 (October 6, 2022)
Add typing_extensions.Any a backport of python 3.11's Any class which is
subclassable at runtime. (backport from python/cpython#31841, by Shantanu
and Jelle Zijlstra). Patch by James Hilton-Balfe (@Gobot1234).
Add initial support for TypeVarLike default parameter, PEP 696.
Patch by Marc Mueller (@cdce8p).
Runtime support for PEP 698, adding typing_extensions.override. Patch by
Jelle Zijlstra.
Add the infer_variance parameter to TypeVar, as specified in PEP 695.
Patch by Jelle Zijlstra.
Release 4.3.0 (July 1, 2022)
Add typing_extensions.NamedTuple, allowing for generic NamedTuples on
Python <3.11 (backport from python/cpython#92027, by Serhiy Storchaka). Patch
by Alex Waygood (@AlexWaygood).
Adjust typing_extensions.TypedDict to allow for generic TypedDicts on
Python <3.11 (backport from python/cpython#27663, by Samodya Abey). Patch by
Alex Waygood (@AlexWaygood).
Release 4.2.0 (April 17, 2022)
Re-export typing.Unpack and typing.TypeVarTuple on Python 3.11.
Add ParamSpecArgs and ParamSpecKwargs to __all__.
Improve "accepts only single type" error messages.
Improve the distributed package. Patch by Marc Mueller (@cdce8p).
Update typing_extensions.dataclass_transform to rename the
field_descriptors parameter to field_specifiers and accept
arbitrary keyword arguments.
Add typing_extensions.get_overloads and
typing_extensions.clear_overloads, and add registry support to
typing_extensions.overload. Backport from python/cpython#89263.
Add typing_extensions.assert_type. Backport from bpo-46480.
Drop support for Python 3.6. Original patch by Adam Turner (@AA-Turner).
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 rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Updates the requirements on typing-extensions to permit the latest version.
Changelog
Sourced from typing-extensions's changelog.
... (truncated)
Commits
8dcd899
Prepare release 4.5.0 (#116)e81cb82
PEP 702: Runtime warnings (#112)1039bb2
fix PEP 702 link in theREADME.md
(#108)673e5ce
Add@typing
_extensions.deprecated (#105)27646ec
Fix tests on Python 3.11 (#106)57226b4
Addfrozen_default
parameter ondataclass_transform
(#101)0ea104b
Expand the pyproject.toml sdist include expression to include src/_typed_dict...93ac93b
CI: test on Ubuntu-20.04, not Ubuntu-2004 (#100)5f9258d
Test on Ubuntu 20.04ad3966d
Replace type comments with annotations (#98)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 rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)