qapi: establish mypy type-checking baseline
commit7e09d7882dc1c9464c0fda260fe288011c612adc
authorJohn Snow <jsnow@redhat.com>
Fri, 9 Oct 2020 16:15:40 +0000 (9 12:15 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 10 Oct 2020 09:37:48 +0000 (10 11:37 +0200)
tree8df71e5e222daaf81db1da706d68b7e288a13346
parente6a34cd7a440e6ba04251612aa6eb036d3c47d98
qapi: establish mypy type-checking baseline

Fix a minor typing issue, and then establish a mypy type-checking
baseline.

Like pylint, this should be run from the folder above:

 > mypy --config-file=qapi/mypy.ini qapi/

This is designed and tested for mypy 0.770 or greater.

Signed-off-by: John Snow <jsnow@redhat.com>
Tested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-19-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/mypy.ini [new file with mode: 0644]
scripts/qapi/schema.py