qapi: Rename QAPISchemaObjectType.variants to .branches
A previous commit narrowed the type of QAPISchemaObjectType.variants from QAPISchemaVariants to QAPISchemaBranches. Rename it to .branches. Same for .__init__() parameter @variants. Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
@@ -64,7 +64,7 @@ def gen_call(name: str,
|
||||
assert arg_type
|
||||
argstr = '&arg, '
|
||||
elif arg_type:
|
||||
assert not arg_type.variants
|
||||
assert not arg_type.branches
|
||||
for memb in arg_type.members:
|
||||
assert not memb.ifcond.is_present()
|
||||
if memb.need_has():
|
||||
|
Reference in New Issue
Block a user