Skip to content

Commit 0690c0b

Browse files
authored
PEP 655 Add Required and NotRequired to __all__ (#1031)
1 parent 7efed95 commit 0690c0b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Release 4.x.x
22

3+
- Add missed `Required` and `NotRequired` to `__all__`. Patch by
4+
Yuri Karabas (@uriyyo).
35
- The `@final` decorator now sets the `__final__` attribute on the
46
decorated object to allow runtime introspection. Backport from
57
bpo-46342.

src/typing_extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ def _check_generic(cls, parameters):
8484
'TypeGuard',
8585
'TYPE_CHECKING',
8686
'NoReturn',
87+
'Required',
88+
'NotRequired',
8789
]
8890

8991
if PEP_560:

0 commit comments

Comments
 (0)