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 /testenv/tests/apps/kvmd/test_auth.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
Diffstat (limited to 'testenv/tests/apps/kvmd/test_auth.py')
-rw-r--r-- | testenv/tests/apps/kvmd/test_auth.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testenv/tests/apps/kvmd/test_auth.py b/testenv/tests/apps/kvmd/test_auth.py index 742e7a2c..4a9b8766 100644 --- a/testenv/tests/apps/kvmd/test_auth.py +++ b/testenv/tests/apps/kvmd/test_auth.py @@ -23,10 +23,7 @@ import os import contextlib -from typing import List -from typing import Dict from typing import AsyncGenerator -from typing import Optional import passlib.apache @@ -40,7 +37,7 @@ from kvmd.plugins.auth import get_auth_service_class # ===== -def _make_service_kwargs(path: str) -> Dict: +def _make_service_kwargs(path: str) -> dict: cls = get_auth_service_class("htpasswd") scheme = cls.get_plugin_options() return make_config({"file": path}, scheme)._unpack() @@ -50,7 +47,7 @@ def _make_service_kwargs(path: str) -> Dict: async def _get_configured_manager( internal_path: str, external_path: str="", - force_internal_users: Optional[List[str]]=None, + force_internal_users: (list[str] | None)=None, ) -> AsyncGenerator[AuthManager, None]: manager = AuthManager( |