Преглед на файлове

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>
John Snow преди 4 години
родител
ревизия
c51172667b
променени са 1 файла, в които са добавени 0 реда и са изтрити 1 реда
  1. 0 1
      scripts/qapi/mypy.ini

+ 0 - 1
scripts/qapi/mypy.ini

@@ -1,6 +1,5 @@
 [mypy]
 [mypy]
 strict = True
 strict = True
-strict_optional = False
 disallow_untyped_calls = False
 disallow_untyped_calls = False
 python_version = 3.6
 python_version = 3.6