summaryrefslogtreecommitdiff
path: root/kvmd/validators
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/validators')
-rw-r--r--kvmd/validators/__init__.py2
-rw-r--r--kvmd/validators/ugpio.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/validators/__init__.py b/kvmd/validators/__init__.py
index adb9735b..d66dec56 100644
--- a/kvmd/validators/__init__.py
+++ b/kvmd/validators/__init__.py
@@ -95,7 +95,7 @@ def check_len(arg: _RetvalSeqT, name: str, limit: int) -> _RetvalSeqT:
return arg
-def check_any(arg: Any, name: str, validators: List[Callable[[Any], Any]]) -> Any:
+def check_any(arg: Any, name: str, validators: List[Callable[[Any], Any]]) -> Any: # pylint: disable=inconsistent-return-statements
for validator in validators:
try:
return validator(arg)
diff --git a/kvmd/validators/ugpio.py b/kvmd/validators/ugpio.py
index c8c0fed8..a4e0fd8e 100644
--- a/kvmd/validators/ugpio.py
+++ b/kvmd/validators/ugpio.py
@@ -49,7 +49,7 @@ def valid_ugpio_mode(arg: Any, variants: Set[str]) -> str:
return check_string_in_list(arg, "GPIO driver's pin mode", variants)
-def valid_ugpio_view_table(arg: Any) -> List[List[str]]:
+def valid_ugpio_view_table(arg: Any) -> List[List[str]]: # pylint: disable=inconsistent-return-statements
try:
return [list(map(str, row)) for row in list(arg)]
except Exception: