mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Add stub for readline.set_auto_history (#4688)
This commit is contained in:
committed by
GitHub
parent
b16327fe7e
commit
dcbeed5b5a
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user