Skip to content
Snippets Groups Projects
Commit 82a4c273 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

No more TypeVar

TypeVar are not suitable for method only type checking
parent ae8e6427
No related branches found
No related tags found
1 merge request!1First try of type hints
# 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")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment