mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-25 21:31:09 +08:00
committed by
Jelle Zijlstra
parent
cca6ee43e6
commit
ea2122741f
@@ -100,7 +100,10 @@ elif sys.version_info >= (3, 5):
|
||||
# So, fall back to Any
|
||||
def commonprefix(list: Sequence[_PathType]) -> Any: ...
|
||||
|
||||
def exists(path: _PathType) -> bool: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def exists(path: Union[_PathType, int]) -> bool: ...
|
||||
else:
|
||||
def exists(path: _PathType) -> bool: ...
|
||||
def lexists(path: _PathType) -> bool: ...
|
||||
|
||||
# These return float if os.stat_float_times() == True,
|
||||
|
||||
@@ -100,7 +100,10 @@ elif sys.version_info >= (3, 5):
|
||||
# So, fall back to Any
|
||||
def commonprefix(list: Sequence[_PathType]) -> Any: ...
|
||||
|
||||
def exists(path: _PathType) -> bool: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def exists(path: Union[_PathType, int]) -> bool: ...
|
||||
else:
|
||||
def exists(path: _PathType) -> bool: ...
|
||||
def lexists(path: _PathType) -> bool: ...
|
||||
|
||||
# These return float if os.stat_float_times() == True,
|
||||
|
||||
Reference in New Issue
Block a user