iotests/297: Have mypy ignore unused ignores
authorHanna Reitz <hreitz@redhat.com>
Tue, 21 Jun 2022 09:25:36 +0000 (11:25 +0200)
committerHanna Reitz <hreitz@redhat.com>
Tue, 12 Jul 2022 11:55:24 +0000 (13:55 +0200)
e7874a50ff3f5b20fb46f36958ad ("python: update for mypy 0.950") has added
`warn_unused_ignores = False` to python/setup.cfg, to be able to keep
compatibility with both pre- and post-0.950 mypy versions.

The iotests' mypy.ini needs the same, or 297 will fail (on both pre- and
post-0.950 mypy, as far as I can tell; just for different `ignore`
lines).

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20220621092536.19837-1-hreitz@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/mypy.ini

index 4c0339f5589f7511a2b307b480296c26f3e800e4..d66ffc2e3c786746ab01eec56df4b5422fc6d9db 100644 (file)
@@ -9,4 +9,4 @@ no_implicit_optional = True
 scripts_are_modules = True
 warn_redundant_casts = True
 warn_unused_configs = True
-warn_unused_ignores = True
+warn_unused_ignores = False