Skip to content

Commit e768d1c

Browse files
kevmwXanClic
authored andcommitted
iotests: Disable unsubscriptable-object in pylint
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: pylint-dev/pylint#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]>
1 parent 2659b92 commit e768d1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/qemu-iotests/pylintrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ disable=invalid-name,
1717
too-many-lines,
1818
too-many-locals,
1919
too-many-public-methods,
20+
# pylint warns about Optional[] etc. as unsubscriptable in 3.9
21+
unsubscriptable-object,
2022
# These are temporary, and should be removed:
2123
missing-docstring,
2224

0 commit comments

Comments
 (0)