Skip to content

Commit cb23e33

Browse files
committed
[com] fixed mypy ignore comments
1 parent ee240fe commit cb23e33

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/geocompy/communication.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# mypy: disable-error-code="unused-ignore"
12
"""
23
Description
34
===========
@@ -236,14 +237,13 @@ def open_socket(
236237
)
237238
match protocol:
238239
case "rfcomm":
240+
# Bluetooth sockets and the RFCOMM protocol are not supported
241+
# in Linux environments.
239242
try:
240243
sock = socket.socket(
241-
# type: ignore[attr-defined,unused-ignore]
242-
socket.AF_BLUETOOTH,
243-
# type: ignore[attr-defined,unused-ignore]
244+
socket.AF_BLUETOOTH, # type: ignore[attr-defined]
244245
socket.SOCK_STREAM,
245-
# type: ignore[attr-defined,unused-ignore]
246-
socket.BTPROTO_RFCOMM
246+
socket.BTPROTO_RFCOMM # type: ignore[attr-defined]
247247
)
248248
except Exception as e:
249249
raise OSError(

0 commit comments

Comments
 (0)