Skip to content

Commit ac7aec3

Browse files
authored
Merge pull request #46 from rotem-dafni/fix/python-313-typing-deadlock
fix: use stdlib typing on Python 3.11+ to avoid import deadlock on Python 3.13
2 parents 4e377d6 + 7eb1637 commit ac7aec3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

geonamescache/types.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
import sys
12
from typing import Literal
23

3-
from typing_extensions import NotRequired, TypedDict
4+
if sys.version_info >= (3, 11):
5+
from typing import NotRequired, TypedDict
6+
else:
7+
from typing_extensions import NotRequired, TypedDict
48

59
GeoNameIdStr = str
610
ISOStr = str

0 commit comments

Comments
 (0)