|
| 1 | +import sys |
1 | 2 | from _typeshed import StrOrBytesPath |
2 | 3 | from typing import Callable, Optional, Sequence |
3 | 4 |
|
4 | | -_CompleterT = Optional[Callable[[str, int], Optional[str]]] |
5 | | -_CompDispT = Optional[Callable[[str, Sequence[str], int], None]] |
| 5 | +if sys.platform != "win32": |
| 6 | + _CompleterT = Optional[Callable[[str, int], Optional[str]]] |
| 7 | + _CompDispT = Optional[Callable[[str, Sequence[str], int], None]] |
6 | 8 |
|
7 | | -def parse_and_bind(__string: str) -> None: ... |
8 | | -def read_init_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
9 | | -def get_line_buffer() -> str: ... |
10 | | -def insert_text(__string: str) -> None: ... |
11 | | -def redisplay() -> None: ... |
12 | | -def read_history_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
13 | | -def write_history_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
14 | | -def append_history_file(__nelements: int, __filename: StrOrBytesPath | None = ...) -> None: ... |
15 | | -def get_history_length() -> int: ... |
16 | | -def set_history_length(__length: int) -> None: ... |
17 | | -def clear_history() -> None: ... |
18 | | -def get_current_history_length() -> int: ... |
19 | | -def get_history_item(__index: int) -> str: ... |
20 | | -def remove_history_item(__pos: int) -> None: ... |
21 | | -def replace_history_item(__pos: int, __line: str) -> None: ... |
22 | | -def add_history(__string: str) -> None: ... |
23 | | -def set_auto_history(__enabled: bool) -> None: ... |
24 | | -def set_startup_hook(__function: Callable[[], None] | None = ...) -> None: ... |
25 | | -def set_pre_input_hook(__function: Callable[[], None] | None = ...) -> None: ... |
26 | | -def set_completer(__function: _CompleterT = ...) -> None: ... |
27 | | -def get_completer() -> _CompleterT: ... |
28 | | -def get_completion_type() -> int: ... |
29 | | -def get_begidx() -> int: ... |
30 | | -def get_endidx() -> int: ... |
31 | | -def set_completer_delims(__string: str) -> None: ... |
32 | | -def get_completer_delims() -> str: ... |
33 | | -def set_completion_display_matches_hook(__function: _CompDispT = ...) -> None: ... |
| 9 | + def parse_and_bind(__string: str) -> None: ... |
| 10 | + def read_init_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
| 11 | + def get_line_buffer() -> str: ... |
| 12 | + def insert_text(__string: str) -> None: ... |
| 13 | + def redisplay() -> None: ... |
| 14 | + def read_history_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
| 15 | + def write_history_file(__filename: StrOrBytesPath | None = ...) -> None: ... |
| 16 | + def append_history_file(__nelements: int, __filename: StrOrBytesPath | None = ...) -> None: ... |
| 17 | + def get_history_length() -> int: ... |
| 18 | + def set_history_length(__length: int) -> None: ... |
| 19 | + def clear_history() -> None: ... |
| 20 | + def get_current_history_length() -> int: ... |
| 21 | + def get_history_item(__index: int) -> str: ... |
| 22 | + def remove_history_item(__pos: int) -> None: ... |
| 23 | + def replace_history_item(__pos: int, __line: str) -> None: ... |
| 24 | + def add_history(__string: str) -> None: ... |
| 25 | + def set_auto_history(__enabled: bool) -> None: ... |
| 26 | + def set_startup_hook(__function: Callable[[], None] | None = ...) -> None: ... |
| 27 | + def set_pre_input_hook(__function: Callable[[], None] | None = ...) -> None: ... |
| 28 | + def set_completer(__function: _CompleterT = ...) -> None: ... |
| 29 | + def get_completer() -> _CompleterT: ... |
| 30 | + def get_completion_type() -> int: ... |
| 31 | + def get_begidx() -> int: ... |
| 32 | + def get_endidx() -> int: ... |
| 33 | + def set_completer_delims(__string: str) -> None: ... |
| 34 | + def get_completer_delims() -> str: ... |
| 35 | + def set_completion_display_matches_hook(__function: _CompDispT = ...) -> None: ... |
0 commit comments