We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee240fe commit cb23e33Copy full SHA for cb23e33
src/geocompy/communication.py
@@ -1,3 +1,4 @@
1
+# mypy: disable-error-code="unused-ignore"
2
"""
3
Description
4
===========
@@ -236,14 +237,13 @@ def open_socket(
236
237
)
238
match protocol:
239
case "rfcomm":
240
+ # Bluetooth sockets and the RFCOMM protocol are not supported
241
+ # in Linux environments.
242
try:
243
sock = socket.socket(
- # type: ignore[attr-defined,unused-ignore]
- socket.AF_BLUETOOTH,
244
+ socket.AF_BLUETOOTH, # type: ignore[attr-defined]
245
socket.SOCK_STREAM,
246
- socket.BTPROTO_RFCOMM
+ socket.BTPROTO_RFCOMM # type: ignore[attr-defined]
247
248
except Exception as e:
249
raise OSError(
0 commit comments