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/__init__.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
Diffstat (limited to 'kvmd/plugins/__init__.py')
-rw-r--r-- | kvmd/plugins/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kvmd/plugins/__init__.py b/kvmd/plugins/__init__.py index 9ee8eede..f3afd693 100644 --- a/kvmd/plugins/__init__.py +++ b/kvmd/plugins/__init__.py @@ -23,8 +23,6 @@ import importlib import functools -from typing import Dict -from typing import Type from typing import Any @@ -44,12 +42,12 @@ class BasePlugin: return name[name.rindex(".") + 1:] @classmethod - def get_plugin_options(cls) -> Dict: + def get_plugin_options(cls) -> dict: return {} # pragma: nocover @functools.lru_cache() -def get_plugin_class(sub: str, name: str) -> Type[BasePlugin]: +def get_plugin_class(sub: str, name: str) -> type[BasePlugin]: assert sub assert name if name.startswith("_"): |