Markus Armbruster 060b5a9323 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]
2024-04-24 10:03:54 +02:00
..
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2021-01-12 12:38:03 +01:00
2022-04-21 11:01:00 -04:00
2023-09-08 13:08:52 +03:00
2020-08-21 06:30:14 -04:00
2021-01-12 12:38:03 +01:00