From dcbeed5b5a77913e10e12394f9f4e43434468de3 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Tue, 20 Oct 2020 22:27:07 +0100 Subject: [PATCH] Add stub for readline.set_auto_history (#4688) --- stdlib/2and3/readline.pyi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stdlib/2and3/readline.pyi b/stdlib/2and3/readline.pyi index 7a96c6a16..c2e1e21d8 100644 --- a/stdlib/2and3/readline.pyi +++ b/stdlib/2and3/readline.pyi @@ -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: ...