diff options
| author | John Snow <jsnow@redhat.com> | 2024-03-15 16:22:49 +0100 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2024-04-24 10:03:54 +0200 |
| commit | 8c91329ff09cec94dac22b459cc9914a7f49c54a (patch) | |
| tree | 6f473b3d1e6b9fff95342e25b26803248a01cbd4 /scripts/qapi/common.py | |
| parent | 7191400a44c4eef49d2af356e0744bfb5d273046 (diff) | |
| download | focaccia-qemu-8c91329ff09cec94dac22b459cc9914a7f49c54a.tar.gz focaccia-qemu-8c91329ff09cec94dac22b459cc9914a7f49c54a.zip | |
qapi/schema: fix QAPISchemaArrayType.check's call to resolve_type
Adjust the expression at the callsite to work around mypy's weak type introspection that believes this expression can resolve to QAPISourceInfo; it cannot. (Fundamentally: self.info only resolves to false in a boolean expression when it is None; therefore this expression may only ever produce Optional[str]. mypy does not know that 'info', when it is a QAPISourceInfo object, cannot ever be false.) 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-14-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/common.py')
0 files changed, 0 insertions, 0 deletions