Skip to content

Commit

Permalink
Move setuptools._path.StrPath out of the if TYPE_CHECKING (Python…
Browse files Browse the repository at this point in the history
… 3.9+) (pypa#4722)
  • Loading branch information
abravalheri authored Oct 31, 2024
2 parents 49859f7 + 83b081b commit c032a5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions setuptools/_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
if TYPE_CHECKING:
from typing_extensions import TypeAlias

StrPath: TypeAlias = Union[str, os.PathLike[str]] # Same as _typeshed.StrPath
else:
# Python 3.8 support
StrPath: TypeAlias = Union[str, os.PathLike]

StrPath: TypeAlias = Union[str, os.PathLike[str]] # Same as _typeshed.StrPath


def ensure_directory(path):
Expand Down

0 comments on commit c032a5b

Please sign in to comment.