summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-08 10:45:39 +0300
committerDevaev Maxim <[email protected]>2020-09-08 10:45:39 +0300
commitcf5114264b863a7e966a38c0448cf6e5c1214507 (patch)
tree74e0b176dbdd4997e98cfc62c69606544a26cd99 /kvmd/validators
parent1ea68f3e9aa2f7034e0d67e8ec90c7bc3fbd95e3 (diff)
fixed type of return value of check_string_in_list()
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/__init__.py2
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()