Enable and convert to future annotations (#838)

This commit is contained in:
Steven B
2024-04-17 14:39:24 +01:00
committed by GitHub
parent 82d92aeea5
commit 203bd79253
59 changed files with 562 additions and 462 deletions

View File

@@ -1,8 +1,9 @@
"""Base class for all module implementations."""
from __future__ import annotations
import logging
from abc import ABC, abstractmethod
from typing import Dict
from .device import Device
from .exceptions import KasaException
@@ -18,10 +19,10 @@ class Module(ABC):
executed during the regular update cycle.
"""
def __init__(self, device: "Device", module: str):
def __init__(self, device: Device, module: str):
self._device = device
self._module = module
self._module_features: Dict[str, Feature] = {}
self._module_features: dict[str, Feature] = {}
@abstractmethod
def query(self):