We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os.readlink
1 parent 683c6e9 commit 9e79535Copy full SHA for 9e79535
stdlib/3/os/__init__.pyi
@@ -323,7 +323,10 @@ def mkdir(path: _PathType, mode: int = ...) -> None: ...
323
def makedirs(path: _PathType, mode: int = ...,
324
exist_ok: bool = ...) -> None: ...
325
def pathconf(path: _PathType, name: Union[str, int]) -> int: ... # Unix only
326
-def readlink(path: AnyStr) -> AnyStr: ...
+if sys.version_info >= (3, 6):
327
+ def readlink(path: Union[AnyStr, PathLike[AnyStr]]) -> AnyStr: ...
328
+else:
329
+ def readlink(path: AnyStr) -> AnyStr: ...
330
def remove(path: _PathType) -> None: ...
331
def removedirs(path: _PathType) -> None: ...
332
def rename(src: _PathType, dst: _PathType) -> None: ...
0 commit comments