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.
16 lines
309 B
16 lines
309 B
2 months ago
|
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]]: ...
|