Skip to content

Commit 83b081b

Browse files
committed
Move setuptools._path.StrPath out of the TYPE_CHECKING check (Python 3.9+)
1 parent fcdaf02 commit 83b081b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setuptools/_path.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@
1010
if TYPE_CHECKING:
1111
from typing_extensions import TypeAlias
1212

13-
StrPath: TypeAlias = Union[str, os.PathLike[str]] # Same as _typeshed.StrPath
14-
else:
15-
# Python 3.8 support
16-
StrPath: TypeAlias = Union[str, os.PathLike]
13+
14+
StrPath: TypeAlias = Union[str, os.PathLike[str]] # Same as _typeshed.StrPath
1715

1816

1917
def ensure_directory(path):

0 commit comments

Comments
 (0)