summaryrefslogtreecommitdiff
path: root/kvmd/apps/ipmi/auth.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/apps/ipmi/auth.py
parent4b75221e9470b4a009955d7677f16adf8e23e302 (diff)
new typing style
Diffstat (limited to 'kvmd/apps/ipmi/auth.py')
-rw-r--r--kvmd/apps/ipmi/auth.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/kvmd/apps/ipmi/auth.py b/kvmd/apps/ipmi/auth.py
index 0ad3d208..2e495af8 100644
--- a/kvmd/apps/ipmi/auth.py
+++ b/kvmd/apps/ipmi/auth.py
@@ -22,9 +22,6 @@
import dataclasses
-from typing import List
-from typing import Dict
-
# =====
class IpmiPasswdError(Exception):
@@ -55,8 +52,8 @@ class IpmiAuthManager:
def get_credentials(self, ipmi_user: str) -> IpmiUserCredentials:
return self.__credentials[ipmi_user]
- def __parse_passwd_file(self, lines: List[str]) -> Dict[str, IpmiUserCredentials]:
- credentials: Dict[str, IpmiUserCredentials] = {}
+ def __parse_passwd_file(self, lines: list[str]) -> dict[str, IpmiUserCredentials]:
+ credentials: dict[str, IpmiUserCredentials] = {}
for (lineno, line) in enumerate(lines):
if len(line.strip()) == 0 or line.lstrip().startswith("#"):
continue