Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/readline.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys
from _typeshed import StrOrBytesPath
from collections.abc import Callable, Sequence
from typing import Literal, TypeAlias
from typing import Literal, SupportsIndex, TypeAlias

if sys.platform != "win32":
_Completer: TypeAlias = Callable[[str, int], str | None]
Expand All @@ -19,7 +19,7 @@ if sys.platform != "win32":
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 get_history_item(index: SupportsIndex, /) -> str | None: ...
def remove_history_item(pos: int, /) -> None: ...
def replace_history_item(pos: int, line: str, /) -> None: ...
def add_history(string: str, /) -> None: ...
Expand Down
Loading