massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 3 / ntpath.pyi
1 # NB: posixpath.pyi, ntpath.pyi, and macpath.pyi must remain consistent!\r
2 # Stubs for os.path\r
3 # Ron Murawski <ron@horizonchess.com>\r
4 \r
5 # based on http://docs.python.org/3.2/library/os.path.html\r
6 import sys\r
7 from typing import Any, List, Tuple, IO\r
8 \r
9 # ----- os.path variables -----\r
10 supports_unicode_filenames = False\r
11 \r
12 # ----- os.path function stubs -----\r
13 def abspath(path: str) -> str: ...\r
14 def basename(path) -> str: ...\r
15 def commonprefix(list: List[str]) -> str: ...\r
16 def dirname(path: str) -> str: ...\r
17 def exists(path: str) -> bool: ...\r
18 def lexists(path: str) -> bool: ...\r
19 def expanduser(path: str) -> str: ...\r
20 def expandvars(path: str) -> str: ...\r
21 def getatime(path: str) -> int:\r
22     ...  # return float if os.stat_float_times() returns True\r
23 def getmtime(path: str) -> int:\r
24     ...  # return float if os.stat_float_times() returns True\r
25 def getctime(path: str) -> int:\r
26     ...  # return float if os.stat_float_times() returns True\r
27 def getsize(path: str) -> int: ...\r
28 def isabs(path: str) -> bool: ...\r
29 def isfile(path: str) -> bool: ...\r
30 def isdir(path: str) -> bool: ...\r
31 def islink(path: str) -> bool: ...\r
32 def ismount(path: str) -> bool: ...\r
33 def join(path: str, *paths: str) -> str: ...\r
34 def normcase(path: str) -> str: ...\r
35 def normpath(path: str) -> str: ...\r
36 def realpath(path: str) -> str: ...\r
37 def relpath(path: str, start: str = ...) -> str: ...\r
38 def samefile(path1: str, path2: str) -> bool: ...\r
39 \r
40 def sameopenfile(fp1: IO[Any], fp2: IO[Any]) -> bool: ...\r
41 \r
42 # def samestat(stat1: stat_result, stat2: stat_result) -> bool:\r
43 #    ...  # Unix only\r
44 def split(path: str) -> Tuple[str, str]: ...\r
45 def splitdrive(path: str) -> Tuple[str, str]: ...\r
46 def splitext(path: str) -> Tuple[str, str]: ...\r
47 if sys.version_info < (3, 7) and sys.platform == 'win32':\r
48     def splitunc(path: str) -> Tuple[str, str]: ...\r