From: Kevin Wolf Date: Tue, 27 Oct 2020 16:38:05 +0000 (+0100) Subject: iotests: Disable unsubscriptable-object in pylint X-Git-Tag: v5.2.0-rc0~2^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eeb7314c46545a2426c39e2c00f03a0ab5f4f4f1;p=thirdparty%2Fqemu.git 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: 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 Message-Id: <20201027163806.290960-3-kwolf@redhat.com> Reviewed-by: John Snow Signed-off-by: Kevin Wolf --- diff --git a/tests/qemu-iotests/pylintrc b/tests/qemu-iotests/pylintrc index 5481afe5282..cd3702e23c3 100644 --- a/tests/qemu-iotests/pylintrc +++ b/tests/qemu-iotests/pylintrc @@ -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,