From b46181156ce2e1121664cfb7206b5ced48c4cd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Jakub=C3=ADk?= <117373330+tomasjakubik@users.noreply.github.com> Date: Thu, 13 Jun 2024 06:07:14 +0200 Subject: [PATCH] Ignore missing types in MyPy on Windows Co-authored-by: Pavel Kirienko --- pycyphal/transport/can/media/socketcan/_socketcan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pycyphal/transport/can/media/socketcan/_socketcan.py b/pycyphal/transport/can/media/socketcan/_socketcan.py index e634d163..ece360b8 100644 --- a/pycyphal/transport/can/media/socketcan/_socketcan.py +++ b/pycyphal/transport/can/media/socketcan/_socketcan.py @@ -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)