qapi/error: Add type hints
authorJohn Snow <jsnow@redhat.com>
Wed, 21 Apr 2021 19:22:32 +0000 (15:22 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 30 Apr 2021 10:59:54 +0000 (12:59 +0200)
commit30d0a016e965796b41ac545b3d527f8080292869
treed726262eeb96b5f776c2764fe074d52538e089c2
parent92870cf3afe42c0f2103ff3f5e4e7edd99549040
qapi/error: Add type hints

No functional change.

Note: QAPISourceError's info parameter is Optional[] because schema.py
treats the info property of its various classes as Optional to
accommodate built-in types, which have no source. See prior commit
'qapi/error: assert QAPISourceInfo is not None'.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-Id: <20210421192233.3542904-8-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/error.py