Debian Codegraph @

Lib/_pyrepl/types.py

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