Remove duplicate names from posixpath.pyi. (#1468)

posixpath.pyi did a '*' import of genericpath.pyi and then redefined
everything it imported. Removes the duplicate definitions from posixpath
and improves the ones in genericpath.
This commit is contained in:
rchen152
2017-07-06 14:22:18 -07:00
committed by Matthias Kramm
parent 16aa0651ae
commit 6368baf42a
2 changed files with 11 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
from typing import Any, AnyStr, List
from typing import Any
from genericpath import * # noqa: F403
curdir = ... # type: Any
@@ -34,13 +34,3 @@ def realpath(filename): ...
supports_unicode_filenames = ... # type: Any
def relpath(path, start=...): ...
# 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: ...