blob: c5b7ebc1a406bdf43b9bf85ad21ec06db1522f6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
from collections.abc import Callable, Iterator
type Callback = Callable[[], object]
type SimpleContextManager = Iterator[None]
type KeySpec = str # like r"\C-c"
type CommandName = str # like "interrupt"
type EventTuple = tuple[CommandName, str]
type Completer = Callable[[str, int], str | None]
type CharBuffer = list[str]
type CharWidths = list[int]
|