mirror of https://github.com/python/cpython
9 lines
268 B
Python
9 lines
268 B
Python
|
from collections.abc import Callable, Iterator
|
||
|
|
||
|
Callback = Callable[[], object]
|
||
|
SimpleContextManager = Iterator[None]
|
||
|
KeySpec = str # like r"\C-c"
|
||
|
CommandName = str # like "interrupt"
|
||
|
EventTuple = tuple[CommandName, str]
|
||
|
Completer = Callable[[str, int], str | None]
|