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/validators/os.py | |
parent | 4b75221e9470b4a009955d7677f16adf8e23e302 (diff) |
new typing style
Diffstat (limited to 'kvmd/validators/os.py')
-rw-r--r-- | kvmd/validators/os.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kvmd/validators/os.py b/kvmd/validators/os.py index 4cf107a7..97aabdf0 100644 --- a/kvmd/validators/os.py +++ b/kvmd/validators/os.py @@ -23,7 +23,6 @@ import os import stat -from typing import List from typing import Any from . import raise_error @@ -94,13 +93,13 @@ def valid_unix_mode(arg: Any) -> int: return int(valid_number(arg, min=0, name="UNIX mode")) -def valid_options(arg: Any, name: str="") -> List[str]: +def valid_options(arg: Any, name: str="") -> list[str]: if not name: name = "options" return valid_string_list(arg, delim=r"[,\t]+", name=name) -def valid_command(arg: Any) -> List[str]: +def valid_command(arg: Any) -> list[str]: cmd = valid_options(arg, name="command") if len(cmd) == 0: raise_error(arg, "command") |