Skip to content

Commit

Permalink
Ignore missing types in MyPy on Windows
Browse files Browse the repository at this point in the history
Co-authored-by: Pavel Kirienko <[email protected]>
  • Loading branch information
tomasjakubik and pavel-kirienko authored Jun 13, 2024
1 parent 452e67c commit b461811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycyphal/transport/can/media/socketcan/_socketcan.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def configure_acceptance_filters(self, configuration: typing.Sequence[FilterConf
raise pycyphal.transport.ResourceClosedError(repr(self))

try:
self._sock.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, _pack_filters(configuration))
self._sock.setsockopt(socket.SOL_CAN_RAW, socket.CAN_RAW_FILTER, _pack_filters(configuration)) # type: ignore
except OSError as error:
_logger.error("Setting CAN filters failed: %s", error)

Expand Down

0 comments on commit b461811

Please sign in to comment.