fixes for os.path.commonpath and os.path.commonprefix (#5363)

This commit is contained in:
Akuli
2021-05-09 01:30:26 +03:00
committed by GitHub
parent 82fa8473ff
commit 49cd02456c
4 changed files with 25 additions and 38 deletions

View File

@@ -1,12 +1,7 @@
import sys
from _typeshed import AnyPath
from typing import AnyStr, Sequence, Text
if sys.version_info >= (3, 0):
def commonprefix(m: Sequence[str]) -> str: ...
else:
def commonprefix(m: Sequence[AnyStr]) -> AnyStr: ...
from os.path import commonprefix as commonprefix
from typing import Text
def exists(path: AnyPath) -> bool: ...
def isfile(path: Text) -> bool: ...