Skip to content

Commit 53dac04

Browse files
committed
typing: make visible when we can stop pulling typing_extensions
Signed-off-by: Yann Dirson <[email protected]>
1 parent cf6e934 commit 53dac04

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/typing.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
import sys
12
from typing import TypedDict
2-
from typing_extensions import NotRequired
3+
4+
if sys.version_info >= (3, 11):
5+
from typing import NotRequired
6+
else:
7+
from typing_extensions import NotRequired
38

49
IsoImageDef = TypedDict('IsoImageDef',
510
{'path': str,

0 commit comments

Comments
 (0)