All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Snow <jsnow@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Mauro Carvalho Chehab" <mchehab+huawei@kernel.org>,
	"Fabiano Rosas" <farosas@suse.de>,
	qemu-block@nongnu.org, "Cleber Rosa" <crosa@redhat.com>,
	"Kyle Evans" <kevans@freebsd.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Pierrick Bouvier" <pierrick.bouvier@oss.qualcomm.com>,
	"Maksim Davydov" <davydov-max@yandex-team.ru>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Ed Maste" <emaste@freebsd.org>,
	"Kohei Tokunaga" <ktokunaga.mail@gmail.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@mailo.com>,
	"Hanna Reitz" <hreitz@redhat.com>,
	"Michael Roth" <michael.roth@amd.com>,
	"Vladimir Sementsov-Ogievskiy" <vsementsov@yandex-team.ru>,
	"Yonggang Luo" <luoyonggang@gmail.com>,
	"Warner Losh" <imp@bsdimp.com>,
	"Reinoud Zandijk" <reinoud@netbsd.org>,
	"John Snow" <jsnow@redhat.com>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Kevin Wolf" <kwolf@redhat.com>, "Li-Wen Hsu" <lwhsu@freebsd.org>,
	"Peter Xu" <peterx@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>
Subject: [PULL 08/16] qapi: update type hint for objects_seen
Date: Wed,  2 Sep 2026 15:35:43 -0400	[thread overview]
Message-ID: <20260902193551.582660-9-jsnow@redhat.com> (raw)
In-Reply-To: <20260902193551.582660-1-jsnow@redhat.com>

In preparation for upgrading Python to 3.12+, adjust the type hint on
objects_seen to prevent mypy from chirping about an unknown type for
this variable.

Why didn't this trigger earlier? A mystery for the ages.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20260825215851.1780608-9-jsnow@redhat.com>
Signed-off-by: John Snow <jsnow@redhat.com>
---
 scripts/qapi/types.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/qapi/types.py b/scripts/qapi/types.py
index 2bf75338283..b87377c6474 100644
--- a/scripts/qapi/types.py
+++ b/scripts/qapi/types.py
@@ -34,7 +34,7 @@
 
 # variants must be emitted before their container; track what has already
 # been output
-objects_seen = set()
+objects_seen: set[str] = set()
 
 
 def gen_enum_lookup(name: str,
-- 
2.55.0



  parent reply	other threads:[~2026-09-02 19:37 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 19:35 [PULL 00/16] Python patches John Snow
2026-09-02 19:35 ` [PULL 01/16] tests: update vm tests to prefer locally-built QEMU John Snow
2026-09-02 19:35 ` [PULL 02/16] tests: update libvirt-ci, lcitool John Snow
2026-09-02 19:35 ` [PULL 03/16] tests: update netbsd dependencies John Snow
2026-09-02 19:35 ` [PULL 04/16] tests: drop python3-devel mapping John Snow
2026-09-02 19:35 ` [PULL 05/16] tests: re-add opencv2 and numpy dependencies John Snow
2026-09-02 19:35 ` [PULL 06/16] tests: add Python3.12 to centos9.docker John Snow
2026-09-02 19:35 ` [PULL 07/16] tests: update emsdk-wasm64-cross John Snow
2026-09-02 19:35 ` John Snow [this message]
2026-09-02 19:35 ` [PULL 09/16] python: upgrade to Python3.12+ John Snow
2026-09-02 19:35 ` [PULL 10/16] python: fix license configuration John Snow
2026-09-02 19:35 ` [PULL 11/16] python: allow mypy to run as the current python version John Snow
2026-09-02 19:35 ` [PULL 12/16] python: remove distutils workarounds John Snow
2026-09-02 19:35 ` [PULL 13/16] python: remove stale setup.cfg options John Snow
2026-09-02 19:35 ` [PULL 14/16] sphinx: require sphinx 7.2.6 John Snow
2026-09-07 12:07   ` Mark Cave-Ayland
2026-09-07 13:13     ` Peter Maydell
2026-09-02 19:35 ` [PULL 15/16] sphinx: drop fakedbusdoc John Snow
2026-09-02 19:35 ` [PULL 16/16] sphinx: drop qapidoc back-compat overboiled spaghetti dinner John Snow
2026-09-02 19:40 ` [PULL 00/16] Python patches John Snow
2026-09-03 15:43 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260902193551.582660-9-jsnow@redhat.com \
    --to=jsnow@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=armbru@redhat.com \
    --cc=berrange@redhat.com \
    --cc=crosa@redhat.com \
    --cc=davydov-max@yandex-team.ru \
    --cc=emaste@freebsd.org \
    --cc=farosas@suse.de \
    --cc=hreitz@redhat.com \
    --cc=imp@bsdimp.com \
    --cc=kevans@freebsd.org \
    --cc=ktokunaga.mail@gmail.com \
    --cc=kwolf@redhat.com \
    --cc=luoyonggang@gmail.com \
    --cc=lwhsu@freebsd.org \
    --cc=marcandre.lureau@redhat.com \
    --cc=mchehab+huawei@kernel.org \
    --cc=michael.roth@amd.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=philmd@mailo.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=reinoud@netbsd.org \
    --cc=thuth@redhat.com \
    --cc=vsementsov@yandex-team.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.