Skip to content

Commit

Permalink
iotests: Disable unsubscriptable-object in pylint
Browse files Browse the repository at this point in the history
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 <kwolf@redhat.com>
  • Loading branch information
kevmw authored and XanClic committed Nov 3, 2020
1 parent 2659b92 commit e768d1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/qemu-iotests/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit e768d1c

Please sign in to comment.