From df6aeef9fdead6905642c4748c2ee6d39c20db94 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Wed, 19 Oct 2016 15:53:36 -0700 Subject: [PATCH] Add missing methods to 2.7/posixpath.pyi. (#622) --- stdlib/2.7/posixpath.pyi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/stdlib/2.7/posixpath.pyi b/stdlib/2.7/posixpath.pyi index 5b6d64df6..933f504c7 100644 --- a/stdlib/2.7/posixpath.pyi +++ b/stdlib/2.7/posixpath.pyi @@ -2,7 +2,7 @@ # # NOTE: This dynamically typed stub was automatically generated by stubgen. -from typing import Any +from typing import Any, AnyStr, List from genericpath import * curdir = ... # type: Any @@ -39,12 +39,12 @@ supports_unicode_filenames = ... # type: Any def relpath(path, start=...): ... -# Names in __all__ with no definition: -# commonprefix -# exists -# getatime -# getctime -# getmtime -# getsize -# isdir -# isfile +# 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: ...