]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
python/qapi: delint import statements
authorJohn Snow <jsnow@redhat.com>
Tue, 18 Nov 2025 20:06:57 +0000 (15:06 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 19 Nov 2025 09:46:26 +0000 (10:46 +0100)
Missed a spot with isort, which now causes the python-minreqs test on
GitLab to fail. Fix it.

(Hint: the commands in python/tests/qapi-isort.sh can be run without the
"-c" parameter to automatically adjust import statements according to
our style rules. Maybe I should make a pre-submit hook that makes this
adjustment automatically. What do you think?)

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/3200
Fixes: 5bd89761a4b ("qapi/command: Avoid generating unused qmp_marshal_output_T")
Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20251118200657.1043688-4-jsnow@redhat.com>

scripts/qapi/commands.py

index a82b5a2a5e62a7d135c70306667981837d0fcb58..9dede7472051801e434d135293b0e34d03a47d1d 100644 (file)
@@ -13,10 +13,7 @@ This work is licensed under the terms of the GNU GPL, version 2.
 See the COPYING file in the top-level directory.
 """
 
-from typing import (
-    List,
-    Optional,
-)
+from typing import List, Optional
 
 from .common import c_name, mcgen
 from .gen import (