mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 07:15:50 +08:00
Redo PathLike without importing os into builtins.
This commit is contained in:
1 parent
baa61a151b
commit
41561f11c7
2 files changed
+9
-5
No files matched your search
@@ -114,8 +114,7 @@ TMP_MAX = 0 # Undocumented, but used by tempfile
|
||||
|
||||
# ----- os classes (structures) -----
|
||||
if sys.version_info >= (3, 6):
|
||||
class PathLike:
|
||||
def __fspath__(self) -> AnyStr: ...
|
||||
from builtins import _PathLike as PathLike # See comment in builtins
|
||||
|
||||
_PathType = Union[bytes, Text]
|
||||
|
||||
|
||||
Reference in new issue
Block a user