You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
309 B
15 lines
309 B
from collections.abc import Callable
|
|
from typing import NamedTuple, Protocol
|
|
|
|
|
|
class CanData(NamedTuple):
|
|
address: int
|
|
dat: bytes
|
|
src: int
|
|
|
|
|
|
CanSendCallable = Callable[[list[CanData]], None]
|
|
|
|
|
|
class CanRecvCallable(Protocol):
|
|
def __call__(self, wait_for_one: bool = False) -> list[list[CanData]]: ...
|
|
|