Skip to content

Commit d62dd2d

Browse files
committed
Fix runtime imports
1 parent ec46ffa commit d62dd2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setuptools/command/build_clib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

33
from collections.abc import Iterable
4-
from typing import NotRequired, TypedDict
4+
from typing import TYPE_CHECKING, TypedDict
55

66
from ..dist import Distribution
77
from ..modified import newer_pairwise_group
@@ -10,6 +10,9 @@
1010
from distutils import log
1111
from distutils.errors import DistutilsSetupError
1212

13+
if TYPE_CHECKING:
14+
from typing_extensions import NotRequired
15+
1316

1417
class _BuildInfo(TypedDict):
1518
sources: list[str] | tuple[str, ...]

0 commit comments

Comments
 (0)