summaryrefslogtreecommitdiff
path: root/kvmd/plugins/auth/pam.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
committerMaxim Devaev <[email protected]>2022-09-04 18:08:40 +0300
commitee3e224e396494cd0d69bb6167087a071a20349c (patch)
tree5becd28570e58a03c6e1e231d0db24c264a73f88 /kvmd/plugins/auth/pam.py
parent4b75221e9470b4a009955d7677f16adf8e23e302 (diff)
new typing style
Diffstat (limited to 'kvmd/plugins/auth/pam.py')
-rw-r--r--kvmd/plugins/auth/pam.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/kvmd/plugins/auth/pam.py b/kvmd/plugins/auth/pam.py
index aef38102..6a83efa0 100644
--- a/kvmd/plugins/auth/pam.py
+++ b/kvmd/plugins/auth/pam.py
@@ -23,9 +23,6 @@
import asyncio
import pwd
-from typing import List
-from typing import Dict
-
import pam
from ...yamlconf import Option
@@ -45,8 +42,8 @@ class Plugin(BaseAuthService):
def __init__( # pylint: disable=super-init-not-called
self,
service: str,
- allow_users: List[str],
- deny_users: List[str],
+ allow_users: list[str],
+ deny_users: list[str],
allow_uids_at: int,
) -> None:
@@ -58,7 +55,7 @@ class Plugin(BaseAuthService):
self.__lock = asyncio.Lock()
@classmethod
- def get_plugin_options(cls) -> Dict:
+ def get_plugin_options(cls) -> dict:
return {
"service": Option("login"),
"allow_users": Option([], type=valid_users_list),