version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
16 lines
309 B
Python
16 lines
309 B
Python
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]]: ...
|