]> Git Repo - qemu.git/commitdiff
iotests: Disable unsubscriptable-object in pylint
authorKevin Wolf <[email protected]>
Tue, 27 Oct 2020 16:38:05 +0000 (17:38 +0100)
committerKevin Wolf <[email protected]>
Tue, 3 Nov 2020 15:24:56 +0000 (16:24 +0100)
When run with Python 3.9, pylint incorrectly warns about things like
Optional[foo] because it doesn't recognise Optional as unsubscriptable.
This is a known pylint bug:

    https://github.com/PyCQA/pylint/issues/3882

Just disable this check to get rid of the warnings.

Disabling this shouldn't make us miss any real bug because mypy also
has a similar check ("... is not indexable").

Signed-off-by: Kevin Wolf <[email protected]>
Message-Id: <20201027163806[email protected]>
Reviewed-by: John Snow <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
tests/qemu-iotests/pylintrc

index 5481afe52827ee774fe92452f662af12b0b7a77c..cd3702e23c39b513c8293dceeb2d4a1c7ef0ff57 100644 (file)
@@ -17,6 +17,8 @@ disable=invalid-name,
         too-many-lines,
         too-many-locals,
         too-many-public-methods,
+        # pylint warns about Optional[] etc. as unsubscriptable in 3.9
+        unsubscriptable-object,
         # These are temporary, and should be removed:
         missing-docstring,
 
This page took 0.028622 seconds and 4 git commands to generate.