]> Git Repo - qemu.git/commitdiff
qapi: enable strict-optional checks
authorJohn Snow <[email protected]>
Mon, 1 Feb 2021 19:37:47 +0000 (14:37 -0500)
committerMarkus Armbruster <[email protected]>
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 <[email protected]>
Message-Id: <20210201193747.2169670[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
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
 
This page took 0.026376 seconds and 4 git commands to generate.