mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Redo PathLike without importing os into builtins.
This commit is contained in:
@@ -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