qemu/scripts/qapi
Markus Armbruster 285a8f209a 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>
2024-05-06 12:38:27 +02:00
..
__init__.py
.flake8 qapi: Update flake8 config 2023-02-23 12:49:39 +01:00
.isort.cfg
commands.py qapi: Rename QAPISchemaObjectType.variants to .branches 2024-05-06 12:38:27 +02:00
common.py qapi: Avoid generating C identifier 'linux' 2022-07-13 12:19:18 +03:00
error.py qapi/error: Add type hints 2021-04-30 12:59:54 +02:00
events.py qapi: Rename QAPISchemaObjectType.variants to .branches 2024-05-06 12:38:27 +02:00
expr.py qapi: Fix to reject 'data': 'mumble' in struct 2023-04-24 15:21:39 +02:00
gen.py qapi: Rename QAPISchemaObjectType.variants to .branches 2024-05-06 12:38:27 +02:00
introspect.py qapi: Rename visitor parameter @variants to @alternatives 2024-05-06 12:38:27 +02:00
main.py qapi: Fix error message format regression 2023-04-24 15:09:10 +02:00
mypy.ini qapi/schema: turn on mypy strictness 2024-04-24 10:03:54 +02:00
parser.py qapi/parser.py: assert member.info is present in connect_member 2024-04-24 10:03:54 +02:00
pylintrc qapi/schema: add pylint suppressions 2024-04-24 10:03:54 +02:00
schema.py qapi: Simplify QAPISchemaVariants @tag_member 2024-05-06 12:38:27 +02:00
source.py qapi: Require member documentation (with loophole) 2024-02-12 10:04:31 +01:00
types.py qapi: Rename QAPISchemaObjectType.variants to .branches 2024-05-06 12:38:27 +02:00
visit.py qapi: Rename visitor parameter @variants to @alternatives 2024-05-06 12:38:27 +02:00