Fixes typing
This commit is contained in:
parent
9ec399a714
commit
9483b98e34
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ def filter_devices(
|
||||||
devices: list[GenericDevice], type: DEVICE_TYPE
|
devices: list[GenericDevice], type: DEVICE_TYPE
|
||||||
) -> list[DEVICE_TYPE]:
|
) -> list[DEVICE_TYPE]:
|
||||||
"""Filters out devices that are not of a specific type."""
|
"""Filters out devices that are not of a specific type."""
|
||||||
filtered_devices: list[type] = [
|
filtered_devices: list[DEVICE_TYPE] = [
|
||||||
device for device in devices if isinstance(device, type)
|
device for device in devices if isinstance(device, type)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue