mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add missing methods to 2.7/posixpath.pyi. (#622)
This commit is contained in:
committed by
Guido van Rossum
parent
7d80824092
commit
df6aeef9fd
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
from typing import Any, AnyStr, List
|
||||
from genericpath import *
|
||||
|
||||
curdir = ... # type: Any
|
||||
@@ -39,12 +39,12 @@ supports_unicode_filenames = ... # type: Any
|
||||
|
||||
def relpath(path, start=...): ...
|
||||
|
||||
# Names in __all__ with no definition:
|
||||
# commonprefix
|
||||
# exists
|
||||
# getatime
|
||||
# getctime
|
||||
# getmtime
|
||||
# getsize
|
||||
# isdir
|
||||
# isfile
|
||||
# posixpath imports these from genericpath.py:
|
||||
def commonprefix(list: List[AnyStr]) -> AnyStr: ...
|
||||
def exists(path: unicode) -> bool: ...
|
||||
def getatime(path: unicode) -> float: ...
|
||||
def getmtime(path: unicode) -> float: ...
|
||||
def getctime(path: unicode) -> float: ...
|
||||
def getsize(path: unicode) -> int: ...
|
||||
def isfile(path: unicode) -> bool: ...
|
||||
def isdir(path: unicode) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user