diff options
author | Yurii Karabas <1998uriyyo@gmail.com> | 2022-01-17 17:35:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 07:35:20 -0800 |
commit | 523cf0233edc7a29502fbd30dc6bf641a7408e16 (patch) | |
tree | 4098757ad57b68ff75e4649c35d4987a6ecde616 | |
parent | d7d91a90ed8004910be96f3aa076d067619c69e1 (diff) | |
download | typing-523cf0233edc7a29502fbd30dc6bf641a7408e16.tar.gz |
PEP 655 Add `Required` and `NotRequired` to `__all__` (#1031)
-rw-r--r-- | typing_extensions/CHANGELOG | 2 | ||||
-rw-r--r-- | typing_extensions/src/typing_extensions.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/typing_extensions/CHANGELOG b/typing_extensions/CHANGELOG index e852291..e8bb7bf 100644 --- a/typing_extensions/CHANGELOG +++ b/typing_extensions/CHANGELOG @@ -1,5 +1,7 @@ # Release 4.x.x +- Add missed `Required` and `NotRequired` to `__all__`. Patch by + Yuri Karabas (@uriyyo). - The `@final` decorator now sets the `__final__` attribute on the decorated object to allow runtime introspection. Backport from bpo-46342. diff --git a/typing_extensions/src/typing_extensions.py b/typing_extensions/src/typing_extensions.py index 7a03f1f..2e0b3d7 100644 --- a/typing_extensions/src/typing_extensions.py +++ b/typing_extensions/src/typing_extensions.py @@ -84,6 +84,8 @@ __all__ = [ 'TypeGuard', 'TYPE_CHECKING', 'NoReturn', + 'Required', + 'NotRequired', ] if PEP_560: |