From 9483b98e344f6e213f88b9ef94e2d4a9278750ff Mon Sep 17 00:00:00 2001 From: Maximilian Giller Date: Fri, 4 Nov 2022 09:07:30 +0100 Subject: [PATCH] Fixes typing --- src/models/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/helper.py b/src/models/helper.py index 78c41c1..e167049 100644 --- a/src/models/helper.py +++ b/src/models/helper.py @@ -18,7 +18,7 @@ def filter_devices( devices: list[GenericDevice], type: DEVICE_TYPE ) -> list[DEVICE_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) ]