diff options
author | Markus Armbruster <armbru@redhat.com> | 2024-03-16 08:46:12 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2024-05-06 12:38:27 +0200 |
commit | 285a8f209af7b4992aa91e8bea03a303fb6406ab (patch) | |
tree | f29b99830ad42ece245d4d0cf9fbe3eda4994007 /scripts/qapi/source.py | |
parent | 8152bc7de6d4377d5104078115aa61986b436f44 (diff) | |
download | qemu-285a8f209af7b4992aa91e8bea03a303fb6406ab.zip qemu-285a8f209af7b4992aa91e8bea03a303fb6406ab.tar.gz qemu-285a8f209af7b4992aa91e8bea03a303fb6406ab.tar.bz2 |
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/qapi/source.py')
0 files changed, 0 insertions, 0 deletions