mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs. * Add StrOrBytesPath as preferred alias for AnyPath. * Replace all remaining AnyPath instances with StrOrBytesPath. * Mark AnyPath as obsolete. Part of #5470
31 lines
1.4 KiB
Python
31 lines
1.4 KiB
Python
from typing import Callable, Optional, Sequence, Text
|
|
|
|
_CompleterT = Optional[Callable[[str, int], Optional[str]]]
|
|
_CompDispT = Optional[Callable[[str, Sequence[str], int], None]]
|
|
|
|
def parse_and_bind(__string: str) -> None: ...
|
|
def read_init_file(__filename: Optional[Text] = ...) -> None: ...
|
|
def get_line_buffer() -> str: ...
|
|
def insert_text(__string: str) -> None: ...
|
|
def redisplay() -> None: ...
|
|
def read_history_file(__filename: Optional[Text] = ...) -> None: ...
|
|
def write_history_file(__filename: Optional[Text] = ...) -> None: ...
|
|
def get_history_length() -> int: ...
|
|
def set_history_length(__length: int) -> None: ...
|
|
def clear_history() -> None: ...
|
|
def get_current_history_length() -> int: ...
|
|
def get_history_item(__index: int) -> str: ...
|
|
def remove_history_item(__pos: int) -> None: ...
|
|
def replace_history_item(__pos: int, __line: str) -> None: ...
|
|
def add_history(__string: str) -> None: ...
|
|
def set_startup_hook(__function: Optional[Callable[[], None]] = ...) -> None: ...
|
|
def set_pre_input_hook(__function: Optional[Callable[[], None]] = ...) -> None: ...
|
|
def set_completer(__function: _CompleterT = ...) -> None: ...
|
|
def get_completer() -> _CompleterT: ...
|
|
def get_completion_type() -> int: ...
|
|
def get_begidx() -> int: ...
|
|
def get_endidx() -> int: ...
|
|
def set_completer_delims(__string: str) -> None: ...
|
|
def get_completer_delims() -> str: ...
|
|
def set_completion_display_matches_hook(__function: _CompDispT = ...) -> None: ...
|