Merge 2/genericpath and 2and3/genericpath (#2330)

This commit is contained in:
Ethan Smith
2018-07-13 22:07:15 +01:00
committed by Jelle Zijlstra
parent 8000513868
commit cc45366ca5
2 changed files with 14 additions and 21 deletions

View File

@@ -1,12 +0,0 @@
from typing import AnyStr, List
class _unicode: ...
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: ...

View File

@@ -1,14 +1,19 @@
from typing import List
from typing import Sequence, AnyStr, Text
import sys
def exists(path: str) -> bool: ...
def isfile(path: str) -> bool: ...
def isdir(s: str) -> bool: ...
def getsize(filename: str) -> int: ...
def getmtime(filename: str) -> float: ...
def getatime(filename: str) -> float: ...
def getctime(filename: str) -> float: ...
def commonprefix(m: List[str]) -> str: ...
if sys.version_info >= (3, 0):
def commonprefix(m: Sequence[str]) -> str: ...
else:
def commonprefix(m: Sequence[AnyStr]) -> AnyStr: ...
def exists(path: Text) -> bool: ...
def isfile(path: Text) -> bool: ...
def isdir(s: Text) -> bool: ...
def getsize(filename: Text) -> int: ...
def getmtime(filename: Text) -> float: ...
def getatime(filename: Text) -> float: ...
def getctime(filename: Text) -> float: ...
if sys.version_info >= (3, 4):
def samestat(s1: str, s2: str) -> int: ...