diff --git a/setuptools/_path.py b/setuptools/_path.py index 5a2bdbd0d4..b749c6c6a0 100644 --- a/setuptools/_path.py +++ b/setuptools/_path.py @@ -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):