rustpython-pylib 0.5.0

A subset of the Python standard library for use with RustPython
Documentation
1
2
3
4
5
6
7
8
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]