Skip to content

Commit 21c981c

Browse files
committed
Fix impossible _Env import
1 parent c26fedb commit 21c981c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

distutils/spawn.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
import sys
1414
import warnings
1515
from collections.abc import Mapping, MutableSequence
16-
from subprocess import _ENV
17-
from typing import TypeVar, overload
16+
from typing import TYPE_CHECKING, TypeVar, overload
1817

1918
from ._log import log
2019
from .debug import DEBUG
2120
from .errors import DistutilsExecError
2221

22+
if TYPE_CHECKING:
23+
from subprocess import _ENV
24+
25+
2326
_MappingT = TypeVar("_MappingT", bound=Mapping)
2427

2528

0 commit comments

Comments
 (0)