diff options
author | Devaev Maxim <[email protected]> | 2021-03-07 15:43:10 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-03-07 15:43:10 +0300 |
commit | 7443b7e98d9e9ffcd7330057739bf2390578caac (patch) | |
tree | 6c784b11859e9dfb481f8435b9e432ee4858b38e /kvmd/validators | |
parent | 99a6e1644abf37c77b3887f9fcd13857daed3105 (diff) |
lint fix
Diffstat (limited to 'kvmd/validators')
-rw-r--r-- | kvmd/validators/__init__.py | 2 | ||||
-rw-r--r-- | kvmd/validators/ugpio.py | 2 |
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: |