os.path etc: update for py313 (#11965)

This commit is contained in:
Shantanu
2024-05-18 14:57:44 -07:00
committed by GitHub
parent 2756f16a11
commit 87edeb65d8
3 changed files with 20 additions and 1 deletions

View File

@@ -14,6 +14,9 @@ from genericpath import (
sameopenfile as sameopenfile,
samestat as samestat,
)
if sys.version_info >= (3, 13):
from genericpath import isdevdrive as isdevdrive
from os import PathLike
from typing import AnyStr, overload
from typing_extensions import LiteralString
@@ -60,6 +63,8 @@ __all__ = [
]
if sys.version_info >= (3, 12):
__all__ += ["isjunction", "splitroot"]
if sys.version_info >= (3, 13):
__all__ += ["isdevdrive"]
supports_unicode_filenames: bool
# aliases (also in os)