Skip to content

Commit c032a5b

Browse files
authored
Move setuptools._path.StrPath out of the if TYPE_CHECKING (Python 3.9+) (#4722)
2 parents 49859f7 + 83b081b commit c032a5b

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)