Add stub for readline.set_auto_history (#4688)

This commit is contained in:
Dominic Davis-Foster
2020-10-20 22:27:07 +01:00
committed by GitHub
parent b16327fe7e
commit dcbeed5b5a

View File

@@ -25,6 +25,10 @@ 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: ...
if sys.version_info >= (3, 6):
def set_auto_history(enabled: bool) -> 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: ...