summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-28 05:45:53 +0300
committerDevaev Maxim <[email protected]>2019-09-28 05:45:53 +0300
commit31c74a1c3020710fb1878a24c8dc8fda71e3fa2e (patch)
tree84519ccaf5c16acd1d6956c0688f876756dd980e /kvmd/plugins/auth
parentebe1255921742fa0ed93c7f8eff7ddc7437025be (diff)
mypy fix
Diffstat (limited to 'kvmd/plugins/auth')
-rw-r--r--kvmd/plugins/auth/htpasswd.py2
-rw-r--r--kvmd/plugins/auth/http.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/auth/htpasswd.py b/kvmd/plugins/auth/htpasswd.py
index 46576727..2f4e2df8 100644
--- a/kvmd/plugins/auth/htpasswd.py
+++ b/kvmd/plugins/auth/htpasswd.py
@@ -37,7 +37,7 @@ class Plugin(BaseAuthService):
self.__path = path
@classmethod
- def get_plugin_options(cls) -> Dict[str, Option]:
+ def get_plugin_options(cls) -> Dict:
return {
"file": Option("/etc/kvmd/htpasswd", type=valid_abs_path_exists, unpack_as="path"),
}
diff --git a/kvmd/plugins/auth/http.py b/kvmd/plugins/auth/http.py
index 69670b23..8f264531 100644
--- a/kvmd/plugins/auth/http.py
+++ b/kvmd/plugins/auth/http.py
@@ -60,7 +60,7 @@ class Plugin(BaseAuthService):
self.__http_session: Optional[aiohttp.ClientSession] = None
@classmethod
- def get_plugin_options(cls) -> Dict[str, Option]:
+ def get_plugin_options(cls) -> Dict:
return {
"url": Option("http://localhost/auth"),
"verify": Option(True, type=valid_bool),