diff options
Diffstat (limited to 'kvmd/plugins/atx/__init__.py')
-rw-r--r-- | kvmd/plugins/atx/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kvmd/plugins/atx/__init__.py b/kvmd/plugins/atx/__init__.py index f7e85057..4ac183c5 100644 --- a/kvmd/plugins/atx/__init__.py +++ b/kvmd/plugins/atx/__init__.py @@ -20,9 +20,7 @@ # ========================================================================== # -from typing import Dict from typing import AsyncGenerator -from typing import Type from ...errors import OperationError from ...errors import IsBusyError @@ -47,10 +45,10 @@ class AtxIsBusyError(IsBusyError, AtxError): # ===== class BaseAtx(BasePlugin): - async def get_state(self) -> Dict: + async def get_state(self) -> dict: raise NotImplementedError - async def poll_state(self) -> AsyncGenerator[Dict, None]: + async def poll_state(self) -> AsyncGenerator[dict, None]: yield {} raise NotImplementedError @@ -84,5 +82,5 @@ class BaseAtx(BasePlugin): # ===== -def get_atx_class(name: str) -> Type[BaseAtx]: +def get_atx_class(name: str) -> type[BaseAtx]: return get_plugin_class("atx", name) # type: ignore |