]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python/qapi: add an ignore for Pylint 4.x
authorJohn Snow <jsnow@redhat.com>
Tue, 18 Nov 2025 20:06:56 +0000 (15:06 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 Nov 2025 09:45:44 +0000 (10:45 +0100)
Pylint 4.x wants to use a different regex for _Stub for some reason;
just silence this.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251118200657.1043688-3-jsnow@redhat.com>

scripts/qapi/introspect.py

index 89ee5d5f17642d7603c84bf5c00adbba3767d0f1..7e28de2279ad32302e19916d90ddea799370c546 100644 (file)
@@ -59,7 +59,7 @@ from .source import QAPISourceInfo
 #
 # Sadly, mypy does not support recursive types; so the _Stub alias is used to
 # mark the imprecision in the type model where we'd otherwise use JSONValue.
-_Stub = Any
+_Stub = Any  # pylint: disable=invalid-name
 _Scalar = Union[str, bool, None]
 _NonScalar = Union[Dict[str, _Stub], List[_Stub]]
 _Value = Union[_Scalar, _NonScalar]