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)
commitc51172667b64abc570640f141ca3bf7109fbbd17
tree55d5656961b98e952e18c93fda5a30016d6e4705
parent4a82e468e76f67901a7fcaeaf2d31904664658cc
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>
scripts/qapi/mypy.ini