OILS / pyext / libc.pyi View on Github | oils.pub

19 lines, 16 significant
1from typing import List, Optional, Tuple
2
3FNM_CASEFOLD: int
4GLOB_PERIOD: int
5REG_ICASE: int
6REG_NEWLINE: int
7REG_NOTBOL: int
8
9def gethostname() -> str: ...
10def glob(pat: str, flags: int = 0) -> List[str]: ...
11def fnmatch(pat: str, s: str, flags: int = 0) -> bool: ...
12def regex_first_group_match(regex: str, s: str, pos: int) -> Optional[Tuple[int, int]]: ...
13def regex_search(regex: str, cflags: int, s: str, eflags: int, pos: int = 0) -> Optional[List[int]]: ...
14def wcswidth(s: str) -> int: ...
15def get_terminal_width() -> int: ...
16def print_time(real: float, user: float, sys: float) -> None: ...
17def realpath(path: str) -> str: ...
18
19def cpython_reset_locale() -> None: ...