qapi/common.py: add type hint annotations
commitd646b2a128391293f9a9b5924d0b62149f992496
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:37 +0000 (9 12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:47 +0000 (10 11:37 +0200)
tree6a9cf6c8fa1341d8925ddfac9cc6cd2e8fd9e209
parent9c2a7b17f264bbd75cf2089f3b9689697bc1600c
qapi/common.py: add type hint annotations

Annotations do not change runtime behavior.
This commit *only* adds annotations.

Note that build_params() cannot be fully annotated due to import
dependency issues.  The commit after next will take care of it.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-16-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/common.py