mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-30 01:21:54 +08:00
lint fixes
This commit is contained in:
@@ -72,7 +72,7 @@ def test_fail__valid_ugpio_item(validator: Callable[[Any], str], arg: Any) -> No
|
||||
@pytest.mark.parametrize("arg", ["foo", " bar", " baz "])
|
||||
def test_ok__valid_ugpio_driver_variants(arg: Any) -> None:
|
||||
value = valid_ugpio_driver(arg, set(["foo", "bar", "baz"]))
|
||||
assert type(value) == str # pylint: disable=unidiomatic-typecheck
|
||||
assert type(value) is str # pylint: disable=unidiomatic-typecheck
|
||||
assert value == str(arg).strip()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user