summaryrefslogtreecommitdiffstats
path: root/scripts/qapi/mypy.ini
diff options
context:
space:
mode:
authorJohn Snow2021-02-01 20:37:47 +0100
committerMarkus Armbruster2021-02-08 14:15:58 +0100
commitc51172667b64abc570640f141ca3bf7109fbbd17 (patch)
tree55d5656961b98e952e18c93fda5a30016d6e4705 /scripts/qapi/mypy.ini
parentqapi: type 'info' as Optional[QAPISourceInfo] (diff)
downloadqemu-c51172667b64abc570640f141ca3bf7109fbbd17.tar.gz
qemu-c51172667b64abc570640f141ca3bf7109fbbd17.tar.xz
qemu-c51172667b64abc570640f141ca3bf7109fbbd17.zip
qapi: enable strict-optional checks
In the modules that we are checking so far, we can be stricter about the difference between Optional[T] and T types. Enable that check. Enabling it now will assist review on further typing and cleanup work. Signed-off-by: John Snow <jsnow@redhat.com> Message-Id: <20210201193747.2169670-17-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.ini1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini
index 74fc6c8215..04bd5db527 100644
--- a/scripts/qapi/mypy.ini
+++ b/scripts/qapi/mypy.ini
@@ -1,6 +1,5 @@
[mypy]
strict = True
-strict_optional = False
disallow_untyped_calls = False
python_version = 3.6