qapi/schema: add type narrowing to lookup_type()
authorJohn Snow <jsnow@redhat.com>
Fri, 15 Mar 2024 15:22:46 +0000 (16:22 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 24 Apr 2024 08:03:54 +0000 (10:03 +0200)
commit10755a9536eaf134f86df1d32a47ee8b07c2f1b9
treebe0e695e4bc715c96fb408f9acb69f52576e88c3
parent9bda6c7d1108c13be67e615b50f5d1b61fa3177e
qapi/schema: add type narrowing to lookup_type()

This function is a bit hard to type as-is; mypy needs some assertions to
assist with the type narrowing.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20240315152301.3621858-11-armbru@redhat.com>
scripts/qapi/schema.py