diff mbox series

[PULL,4/6] iotests: Disable unsubscriptable-object in pylint

Message ID 20201103152658.119563-5-kwolf@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,1/6] qmp: fix aio_poll() assertion failure on Windows | expand

Commit Message

Kevin Wolf Nov. 3, 2020, 3:26 p.m. UTC
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:


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>
Message-Id: <20201027163806.290960-3-kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
 tests/qemu-iotests/pylintrc | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series


diff --git a/tests/qemu-iotests/pylintrc b/tests/qemu-iotests/pylintrc
index 5481afe528..cd3702e23c 100644
--- a/tests/qemu-iotests/pylintrc
+++ b/tests/qemu-iotests/pylintrc
@@ -17,6 +17,8 @@  disable=invalid-name,
+        # pylint warns about Optional[] etc. as unsubscriptable in 3.9
+        unsubscriptable-object,
         # These are temporary, and should be removed: