Fixes typing

This commit is contained in:
Maximilian Giller 2022-11-04 09:07:30 +01:00
parent 9ec399a714
commit 9483b98e34

View file

@ -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)
] ]