mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-13 18:31:02 +08:00
fixes for os.path.commonpath and os.path.commonprefix (#5363)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user