mirror of
https://github.com/meshtastic/python.git
synced 2025-12-28 18:37:52 -05:00
make typing a little more 3.8-approved
This commit is contained in:
@@ -6,7 +6,7 @@ import logging
|
||||
import struct
|
||||
import time
|
||||
from threading import Thread
|
||||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
|
||||
import print_color # type: ignore[import-untyped]
|
||||
from bleak import BleakClient, BleakScanner, BLEDevice
|
||||
@@ -94,7 +94,7 @@ class BLEInterface(MeshInterface):
|
||||
print_color.print(log_radio, end=None)
|
||||
|
||||
@staticmethod
|
||||
def scan() -> list[BLEDevice]:
|
||||
def scan() -> List[BLEDevice]:
|
||||
"""Scan for available BLE devices."""
|
||||
with BLEClient() as client:
|
||||
logging.info("Scanning for BLE devices (takes 10 seconds)...")
|
||||
|
||||
Reference in New Issue
Block a user