Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonarddeR committed Jan 7, 2025
1 parent c24ad0f commit b01ad17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/test_bdDetect.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_addUsbDevice(self):

registrar = bdDetect.DriverRegistrar(albatross.BrailleDisplayDriver.name)

def matchFunc(match):
def matchFunc(match: bdDetect.DeviceMatch) -> bool:
return match.deviceInfo.get("busReportedDeviceDescription") == albatross.driver.BUS_DEVICE_DESC

registrar.addUsbDevice(
Expand All @@ -66,7 +66,7 @@ def test_addUsbDevices(self):

registrar = bdDetect.DriverRegistrar(albatross.BrailleDisplayDriver.name)

def matchFunc(match):
def matchFunc(match: bdDetect.DeviceMatch) -> bool:
return match.deviceInfo.get("busReportedDeviceDescription") == albatross.driver.BUS_DEVICE_DESC

fakeVidAndPid = "VID_0403&PID_6002"
Expand Down Expand Up @@ -94,7 +94,7 @@ def test_addBluetoothDevices(self):

registrar = bdDetect.DriverRegistrar(albatross.BrailleDisplayDriver.name)

def matchFunc(match):
def matchFunc(match: bdDetect.DeviceMatch) -> bool:
return True

registrar.addBluetoothDevices(matchFunc)
Expand Down

0 comments on commit b01ad17

Please sign in to comment.