]> git.ipfire.org Git - thirdparty/qemu.git/commit
docs/qapi_domain: isolate TYPE_CHECKING imports
authorJohn Snow <jsnow@redhat.com>
Thu, 13 Mar 2025 04:43:02 +0000 (00:43 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 14 Mar 2025 06:31:56 +0000 (07:31 +0100)
commit8fad36626009ef51b52f4cdf08e29cc66284e41d
tree2b03297898d3a960b8ffa2c2e2e1bf3797bdbaf1
parentcbb698a2ba568f9746dee00ed59c442787103674
docs/qapi_domain: isolate TYPE_CHECKING imports

When using the annotations feature, type hints do not need to be
imported at runtime, only at type check time. Move type-check-only
imports into a conditional to reduce the number of imports needed at
runtime.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-ID: <20250313044312.189276-2-jsnow@redhat.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/sphinx/qapi_domain.py