]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qapi: enable strict-optional checks
authorJohn Snow <jsnow@redhat.com>
Mon, 1 Feb 2021 19:37:47 +0000 (14:37 -0500)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2021 13:15:58 +0000 (14:15 +0100)
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>
scripts/qapi/mypy.ini

index 74fc6c82153e35d6a3f53c6410660d7e289a78ad..04bd5db5278d547cdbc8dc7a203ffd6c8679af7c 100644 (file)
@@ -1,6 +1,5 @@
 [mypy]
 strict = True
-strict_optional = False
 disallow_untyped_calls = False
 python_version = 3.6