diff options
author | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-09-04 18:08:40 +0300 |
commit | ee3e224e396494cd0d69bb6167087a071a20349c (patch) | |
tree | 5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/plugins/atx/__init__.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
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 |