Fix an issue with a typing_extension import not being protected by a typing check
This commit is contained in:
1 parent
e47bf30d5e
commit
6da3d4c14c
1 file changed
+1
-2
+1
-2
@@ -8,12 +8,11 @@ from enum import Enum, auto
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from typing import Any, Dict, Literal, NewType, TYPE_CHECKING
|
from typing import Any, Dict, Literal, NewType, TYPE_CHECKING
|
||||||
|
|
||||||
from typing_extensions import TypeAlias
|
|
||||||
|
|
||||||
from version import __version__
|
from version import __version__
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from collections import abc # noqa
|
from collections import abc # noqa
|
||||||
|
from typing_extensions import TypeAlias
|
||||||
|
|
||||||
|
|
||||||
# Base Paths
|
# Base Paths
|
||||||
|
|||||||
Reference in new issue
Block a user