aboutsummaryrefslogtreecommitdiff
path: root/typing_extensions/CHANGELOG
diff options
context:
space:
mode:
authorDavid C <47948262+d-k-bo@users.noreply.github.com>2022-02-11 16:45:05 +0100
committerGitHub <noreply@github.com>2022-02-11 07:45:05 -0800
commit773f7595ab2f1d683a0ab211ca083cbc24a7af21 (patch)
tree2881bb11580842c43b86ba0abcbd8ed570bb3d07 /typing_extensions/CHANGELOG
parentf6e827230b397c26a114638fd5cac54517905d4d (diff)
downloadtyping-773f7595ab2f1d683a0ab211ca083cbc24a7af21.tar.gz
PEP 655 Add interaction with __required_keys__, __optional_keys__ and get_type_hints() (#1057)
* PEP 655 Add interaction w/ required/optional keys Change TypedDict to respect keys that are marked as Required or NotRequired (requires PEP 560). Make TypedDict and is_typeddict accessible if typing doesn't implement Required. * PEP 655 Add interaction with get_type_hints() Replace _strip_annotations() with _strip_extras() to strip Annotated, Required and NotRequired. Change get_type_hints() to pass include_extras=True to newer versions of typing.get_type_hints() and use _strip_extras(). Make get_type_hints accessible if typing doesn't implement Required.
Diffstat (limited to 'typing_extensions/CHANGELOG')
-rw-r--r--typing_extensions/CHANGELOG2
1 files changed, 2 insertions, 0 deletions
diff --git a/typing_extensions/CHANGELOG b/typing_extensions/CHANGELOG
index b874ddc..9178d96 100644
--- a/typing_extensions/CHANGELOG
+++ b/typing_extensions/CHANGELOG
@@ -1,5 +1,7 @@
# Release 4.x.x
+- Add interaction of `Required` and `NotRequired` with `__required_keys__`,
+ `__optional_keys__` and `get_type_hints()`. Patch by David Cabot (@d-k-bo).
- Runtime support for PEP 675 and `typing_extensions.LiteralString`.
- Add `Never` and `assert_never`. Backport from bpo-46475.
- `ParamSpec` args and kwargs are now equal to themselves. Backport from