massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / readline.pyi
1 # Stubs for readline\r
2 \r
3 from typing import Callable, Optional, Sequence\r
4 import sys\r
5 \r
6 _CompleterT = Optional[Callable[[str, int], Optional[str]]]\r
7 _CompDispT = Optional[Callable[[str, Sequence[str], int], None]]\r
8 \r
9 \r
10 def parse_and_bind(string: str) -> None: ...\r
11 def read_init_file(filename: str = ...) -> None: ...\r
12 \r
13 def get_line_buffer() -> str: ...\r
14 def insert_text(string: str) -> None: ...\r
15 def redisplay() -> None: ...\r
16 \r
17 def read_history_file(filename: str = ...) -> None: ...\r
18 def write_history_file(filename: str = ...) -> None: ...\r
19 if sys.version_info >= (3, 5):\r
20     def append_history_file(nelements: int, filename: str = ...) -> None: ...\r
21 def get_history_length() -> int: ...\r
22 def set_history_length(length: int) -> None: ...\r
23 \r
24 def clear_history() -> None: ...\r
25 def get_current_history_length() -> int: ...\r
26 def get_history_item(index: int) -> str: ...\r
27 def remove_history_item(pos: int) -> None: ...\r
28 def replace_history_item(pos: int, line: str) -> None: ...\r
29 def add_history(string: str) -> None: ...\r
30 \r
31 def set_startup_hook(function: Optional[Callable[[], None]] = ...) -> None: ...\r
32 def set_pre_input_hook(function: Optional[Callable[[], None]] = ...) -> None: ...\r
33 \r
34 def set_completer(function: _CompleterT = ...) -> None: ...\r
35 def get_completer() -> _CompleterT: ...\r
36 def get_completion_type() -> int: ...\r
37 def get_begidx() -> int: ...\r
38 def get_endidx() -> int: ...\r
39 def set_completer_delims(string: str) -> None: ...\r
40 def get_completer_delims() -> str: ...\r
41 def set_completion_display_matches_hook(function: _CompDispT = ...) -> None: ...\r