diff options
author | 2024-03-16 08:46:12 +0100 | |
---|---|---|
committer | 2024-05-06 12:38:27 +0200 | |
commit | 285a8f209af7b4992aa91e8bea03a303fb6406ab (patch) | |
tree | f29b99830ad42ece245d4d0cf9fbe3eda4994007 /scripts/coverage/compare_gcov_json.py | |
parent | qapi: Move conditional code from QAPISchemaVariants to its subtypes (diff) | |
download | qemu-285a8f209af7b4992aa91e8bea03a303fb6406ab.tar.xz qemu-285a8f209af7b4992aa91e8bea03a303fb6406ab.zip |
qapi: Simplify QAPISchemaVariants @tag_member
For union types, the tag member is known only after .check().
We used to code this in a simple way: QAPISchemaVariants attribute
.tag_member was None for union types until .check().
Since this complicated typing, recent commit "qapi/schema: fix typing
for QAPISchemaVariants.tag_member" hid it behind a property.
The previous commit lets us treat .tag_member just like the other
attributes that become known only in .check(): declare, but don't
initialize it in .__init__().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions