From: John Snow Date: Tue, 18 Nov 2025 20:06:56 +0000 (-0500) Subject: python/qapi: add an ignore for Pylint 4.x X-Git-Tag: v10.2.0-rc1~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc74a4d86e8fd848e87dc67902498cd0cd36a4aa;p=thirdparty%2Fqemu.git python/qapi: add an ignore for Pylint 4.x Pylint 4.x wants to use a different regex for _Stub for some reason; just silence this. Signed-off-by: John Snow Reviewed-by: Thomas Huth Signed-off-by: Richard Henderson Message-ID: <20251118200657.1043688-3-jsnow@redhat.com> --- diff --git a/scripts/qapi/introspect.py b/scripts/qapi/introspect.py index 89ee5d5f17..7e28de2279 100644 --- a/scripts/qapi/introspect.py +++ b/scripts/qapi/introspect.py @@ -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]