diff options
author | Devaev Maxim <[email protected]> | 2020-09-08 10:45:39 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-08 10:45:39 +0300 |
commit | cf5114264b863a7e966a38c0448cf6e5c1214507 (patch) | |
tree | 74e0b176dbdd4997e98cfc62c69606544a26cd99 /kvmd | |
parent | 1ea68f3e9aa2f7034e0d67e8ec90c7bc3fbd95e3 (diff) |
fixed type of return value of check_string_in_list()
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/validators/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/validators/__init__.py b/kvmd/validators/__init__.py index c1374930..9a372002 100644 --- a/kvmd/validators/__init__.py +++ b/kvmd/validators/__init__.py @@ -63,7 +63,7 @@ def check_in_list(arg: Any, name: str, variants: Union[Sequence, Mapping]) -> An return arg -def check_string_in_list(arg: Any, name: str, variants: Union[Sequence[str], Mapping[str, Any]], lower: bool=True) -> Any: +def check_string_in_list(arg: Any, name: str, variants: Union[Sequence[str], Mapping[str, Any]], lower: bool=True) -> str: arg = check_not_none_string(arg, name) if lower: arg = arg.lower() |