Files
termidi/typings/mido/messages/checks.pyi
T

20 lines
743 B
Python
Raw Normal View History

2026-04-26 00:51:40 +08:00
from collections.abc import Callable, Iterable
from numbers import Integral, Real
from .specs import MsgDict
def check_type(type_: str) -> None: ...
def check_channel(channel: int | Integral) -> None: ...
def check_pos(pos: int | Integral) -> None: ...
def check_pitch(pitch: int | Integral) -> None: ...
def check_data(data_bytes: Iterable[int | Integral]) -> None: ...
def check_frame_type(value: int | Integral) -> None: ...
def check_frame_value(value: int | Integral) -> None: ...
def check_data_byte(value: int | Integral) -> None: ...
def check_time(time: float | Real) -> None: ...
_CHECKS: dict[str, Callable[[object], None]]
def check_value(name: str, value: object) -> None: ...
def check_msgdict(msgdict: MsgDict) -> None: ...