Skip to contentSkip to conversation

iotests/297: Have mypy ignore unused ignores

PATCH In review Hanna Reitz 2 participants 2 messages Jun 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iotests/297: Have mypy ignore unused ignores

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).

---
 tests/qemu-iotests/mypy.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/mypy.ini +1 -1
index 4c0339f558..d66ffc2e3c 100644
@@ -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
Signature · 1 line
2.35.3
Acked-by on v1 1/1
#1 lore raw
Quoted 24 lines · Hanna Reitz

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).

---
 tests/qemu-iotests/mypy.ini | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/mypy.ini +1 -2
index 4c0339f558..d66ffc2e3c 100644
@@ -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
--
Quoted 2 lines

2.35.3

I'm away for the week, but:

🙂

Quoted 1 line