File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ STATIC const mp_obj_property_t canio_can_loopback_obj = {
324
324
};
325
325
326
326
327
- //| def send(message: Message) -> None:
327
+ //| def send(message: Union[RemoteTransmissionRequest, Message] ) -> None:
328
328
//| """Send a message on the bus with the given data and id.
329
329
//| If the message could not be sent due to a full fifo or a bus error condition, RuntimeError is raised.
330
330
//| """
Original file line number Diff line number Diff line change 38
38
//| `~canio.CAN.listen`."""
39
39
//|
40
40
41
- //| def receive(self) -> Optional[Message]:
41
+ //| def receive(self) -> Optional[Union[RemoteTransmissionRequest, Message] ]:
42
42
//| """Reads a message, after waiting up to self.timeout seconds
43
43
//|
44
44
//| If no message is received in time, None is returned. Otherwise,
You can’t perform that action at this time.
0 commit comments