[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/12] qapi: enable strict-optional checks
From: |
John Snow |
Subject: |
[PATCH 12/12] qapi: enable strict-optional checks |
Date: |
Mon, 14 Dec 2020 18:53:27 -0500 |
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>
---
scripts/qapi/mypy.ini | 1 -
1 file changed, 1 deletion(-)
diff --git a/scripts/qapi/mypy.ini b/scripts/qapi/mypy.ini
index 74fc6c82153e..04bd5db5278d 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
--
2.26.2
- Re: [PATCH 11/12] qapi/schema: Name the builtin module "" instead of None, (continued)
- [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, John Snow, 2020/12/14
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, Markus Armbruster, 2020/12/16
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, John Snow, 2020/12/16
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, Markus Armbruster, 2020/12/17
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, John Snow, 2020/12/17
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, Markus Armbruster, 2020/12/18
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, John Snow, 2020/12/18
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, Markus Armbruster, 2020/12/18
- Re: [PATCH 08/12] qapi/schema: make QAPISourceInfo mandatory, John Snow, 2020/12/18
[PATCH 12/12] qapi: enable strict-optional checks,
John Snow <=