From 82a4c2733e58781739e6614f886954c05165fa21 Mon Sep 17 00:00:00 2001 From: jkerdreux-imt <jerome.kerdreux@imt-atlantique.fr> Date: Tue, 26 Nov 2024 00:14:58 +0100 Subject: [PATCH] No more TypeVar TypeVar are not suitable for method only type checking --- libs/lib/xaal/lib/types.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 libs/lib/xaal/lib/types.py diff --git a/libs/lib/xaal/lib/types.py b/libs/lib/xaal/lib/types.py deleted file mode 100644 index 12c6f75f..00000000 --- a/libs/lib/xaal/lib/types.py +++ /dev/null @@ -1,17 +0,0 @@ -# Python type hints for the xAAL library - -from typing import TYPE_CHECKING, TypeVar - -if TYPE_CHECKING: - from .devices import Device, Attributes, Attribute - from .engine import Engine - from .aioengine import AsyncEngine - from .bindings import UUID - -DeviceT = TypeVar("DeviceT", bound="Device") -AttributeT = TypeVar("AttributeT", bound="Attribute") -AttributesT = TypeVar("AttributesT", bound="Attributes") -EngineT = TypeVar("EngineT", bound="Engine") -AsyncEngineT = TypeVar("AsyncEngineT", bound="AsyncEngine") - -UUIDT = TypeVar("UUIDT", bound="UUID") -- GitLab