Commit ab2de86588 for qemu.org

commit ab2de86588690291009b063938abf10d4faed420
Author: John Snow <jsnow@redhat.com>
Date:   Tue Aug 25 17:58:43 2026 -0400

    qapi: update type hint for objects_seen

    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>

diff --git a/scripts/qapi/types.py b/scripts/qapi/types.py
index 2bf7533828..b87377c647 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,