diff options
| author | Markus Armbruster <armbru@redhat.com> | 2024-03-15 16:23:01 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2024-04-24 10:03:54 +0200 |
| commit | 060b5a9323e5f49c5edcb77c42e231065bbcc42e (patch) | |
| tree | 955e724b239a428c909687ccd870838d686e6df6 /scripts/qapi/introspect.py | |
| parent | 99e75d8c2a9fd13e8a2c0eb0718359b06445d38b (diff) | |
| download | focaccia-qemu-060b5a9323e5f49c5edcb77c42e231065bbcc42e.tar.gz focaccia-qemu-060b5a9323e5f49c5edcb77c42e231065bbcc42e.zip | |
qapi: Dumb down QAPISchema.lookup_entity()
QAPISchema.lookup_entity() takes an optional type argument, a subtype of QAPISchemaDefinition, and returns that type or None. Callers can use this to save themselves an isinstance() test. The only remaining user of this convenience feature is .lookup_type(). But we don't actually save anything anymore there: we still need the isinstance() to help mypy over the hump. Drop the .lookup_entity() argument, and adjust .lookup_type(). Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20240315152301.3621858-26-armbru@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> [Commit message typo fixed]
Diffstat (limited to 'scripts/qapi/introspect.py')
0 files changed, 0 insertions, 0 deletions