OILS / pyext / libc.pyi View on Github | oilshell.org

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