diff options
author | John Snow <jsnow@redhat.com> | 2020-10-09 12:15:41 -0400 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-10-10 11:37:48 +0200 |
commit | d1b21b393e7ae1a387a7c81f633d924a66d29408 (patch) | |
tree | 90ed52e2515f8eb74c322914765000e1de766c5a /scripts/qapi/mypy.ini | |
parent | 7e09d7882dc1c9464c0fda260fe288011c612adc (diff) | |
download | qemu-d1b21b393e7ae1a387a7c81f633d924a66d29408.zip qemu-d1b21b393e7ae1a387a7c81f633d924a66d29408.tar.gz qemu-d1b21b393e7ae1a387a7c81f633d924a66d29408.tar.bz2 |
qapi/events.py: add type hint annotations
Annotations do not change runtime behavior.
This commit *only* adds annotations.
Note: __init__ does not need its return type annotated, as it is special.
https://mypy.readthedocs.io/en/stable/class_basics.html#annotating-init-methods
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-20-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/mypy.ini')
-rw-r--r-- | scripts/qapi/mypy.ini | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini index 00fac15..5df11e5 100644 --- a/scripts/qapi/mypy.ini +++ b/scripts/qapi/mypy.ini @@ -14,11 +14,6 @@ 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 |