qapi/visit.py: assert tag_member contains a QAPISchemaEnumType
commit554df4f33f2076f973b4ae6bc55b5160f513634f
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:56 +0000 (9 12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:49 +0000 (10 11:37 +0200)
tree6193b53ca65299f1536f038af10ecec7c9de0725
parentdec44d3d659446c333c52e0c95c996b6881f94d6
qapi/visit.py: assert tag_member contains a QAPISchemaEnumType

This is true by design, but not presently able to be expressed in the
type system. An assertion helps mypy understand our constraints.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-35-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/visit.py