Skip to content

Commit 9004f1e

Browse files
committed
fixes for type checker
1 parent bd767af commit 9004f1e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

meshtastic/ble_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from threading import Thread
99
from typing import Optional
1010

11-
import print_color
11+
import print_color # type: ignore[import-untyped]
1212
from bleak import BleakClient, BleakScanner, BLEDevice
1313
from bleak.exc import BleakDBusError, BleakError
1414

@@ -139,7 +139,7 @@ def _sanitize_address(address): # pylint: disable=E0213
139139
"Standardize BLE address by removing extraneous characters and lowercasing."
140140
return address.replace("-", "").replace("_", "").replace(":", "").lower()
141141

142-
def connect(self, address: Optional[str] = None):
142+
def connect(self, address: Optional[str] = None) -> "BLEClient":
143143
"Connect to a device by address."
144144

145145
# Bleak docs recommend always doing a scan before connecting (even if we know addr)

0 commit comments

Comments
 (0)