xemu/scripts/qapi
John Snow f5d4361cda qapi/source.py: add type hint annotations
Annotations do not change runtime behavior.
This commit *only* adds annotations.

A note on typing of __init__: mypy requires init functions with no
parameters to document a return type of None to be considered fully
typed. In the case when there are input parameters, None may be omitted.

Since __init__ may never return any value, it is preferred to omit the
return annotation whenever possible.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Tested-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20201009161558.107041-25-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2020-10-10 11:37:48 +02:00
..
__init__.py
.flake8 qapi: delint using flake8 2020-10-10 11:37:47 +02:00
.isort.cfg qapi: enforce import order/styling with isort 2020-10-10 11:37:47 +02:00
commands.py qapi/commands.py: add type hint annotations 2020-10-10 11:37:48 +02:00
common.py qapi/common.py: move build_params into gen.py 2020-10-10 11:37:48 +02:00
error.py qapi: Use super() now we have Python 3 2020-03-05 09:24:11 +01:00
events.py qapi/events.py: Move comments into docstrings 2020-10-10 11:37:48 +02:00
expr.py qapi: enforce import order/styling with isort 2020-10-10 11:37:47 +02:00
gen.py qapi/common.py: move build_params into gen.py 2020-10-10 11:37:48 +02:00
introspect.py qapi: enforce import order/styling with isort 2020-10-10 11:37:47 +02:00
main.py qapi: Prefer explicit relative imports 2020-10-10 11:37:47 +02:00
mypy.ini qapi/source.py: add type hint annotations 2020-10-10 11:37:48 +02:00
parser.py qapi: enforce import order/styling with isort 2020-10-10 11:37:47 +02:00
pylintrc qapi/common.py: check with pylint 2020-10-10 11:37:47 +02:00
schema.py qapi: establish mypy type-checking baseline 2020-10-10 11:37:48 +02:00
source.py qapi/source.py: add type hint annotations 2020-10-10 11:37:48 +02:00
types.py qapi: Remove wildcard includes 2020-10-10 11:37:47 +02:00
visit.py qapi/common.py: Add indent manager 2020-10-10 11:37:47 +02:00