Skip to content

Commit 509245f

Browse files
committed
Fix TypeAlias import
1 parent 02b856a commit 509245f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

distutils/compilers/C/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
TYPE_CHECKING,
1616
ClassVar,
1717
Literal,
18-
TypeAlias,
1918
TypeVar,
2019
Union,
2120
overload,
@@ -40,7 +39,7 @@
4039
)
4140

4241
if TYPE_CHECKING:
43-
from typing_extensions import TypeVarTuple, Unpack
42+
from typing_extensions import TypeAlias, TypeVarTuple, Unpack
4443

4544
_Ts = TypeVarTuple("_Ts")
4645

distutils/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
Any,
2222
ClassVar,
2323
Literal,
24-
TypeAlias,
2524
TypeVar,
2625
Union,
2726
overload,
@@ -42,6 +41,7 @@
4241

4342
if TYPE_CHECKING:
4443
from _typeshed import SupportsWrite
44+
from typing_extensions import TypeAlias
4545

4646
# type-only import because of mutual dependence between these modules
4747
from .cmd import Command

0 commit comments

Comments
 (0)