[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 17/17] qapi: enable strict-optional checks
From: |
John Snow |
Subject: |
[PATCH v3 17/17] qapi: enable strict-optional checks |
Date: |
Tue, 19 Jan 2021 13:02:42 -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 74fc6c82153..04bd5db5278 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
- [PATCH v3 16/17] qapi: type 'info' as Optional[QAPISourceInfo], (continued)
- [PATCH v3 16/17] qapi: type 'info' as Optional[QAPISourceInfo], John Snow, 2021/01/19
- [PATCH v3 10/17] qapi/gen: Combine ._add_[user|system]_module, John Snow, 2021/01/19
- [PATCH v3 02/17] qapi/events: fix visit_event typing, John Snow, 2021/01/19
- [PATCH v3 09/17] qapi: use './builtin' as the built-in module name, John Snow, 2021/01/19
- [PATCH v3 15/17] qapi/gen: Drop support for QAPIGen without a file name, John Snow, 2021/01/19
- [PATCH v3 13/17] qapi/gen: Support for switching to another module temporarily, John Snow, 2021/01/19
- [PATCH v3 14/17] qapi/commands: Simplify command registry generation, John Snow, 2021/01/19
- [PATCH v3 17/17] qapi: enable strict-optional checks,
John Snow <=