mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user