7e09d7882d
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>
61 lines
1.3 KiB
INI
61 lines
1.3 KiB
INI
[mypy]
|
|
strict = True
|
|
strict_optional = False
|
|
disallow_untyped_calls = False
|
|
python_version = 3.6
|
|
|
|
[mypy-qapi.commands]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.error]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.events]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.expr]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.gen]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.introspect]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.parser]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.schema]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.source]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.types]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|
|
|
|
[mypy-qapi.visit]
|
|
disallow_untyped_defs = False
|
|
disallow_incomplete_defs = False
|
|
check_untyped_defs = False
|