iotests/297: add --namespace-packages to mypy arguments
commit7f0a143b0cd7b2b7c05b55b1b6814747ef612ce3
authorJohn Snow <jsnow@redhat.com>
Thu, 27 May 2021 21:16:52 +0000 (27 17:16 -0400)
committerJohn Snow <jsnow@redhat.com>
Tue, 1 Jun 2021 20:21:21 +0000 (1 16:21 -0400)
treedd35315a4d0f6438a30cc4f487dde87155c850c4
parent859aeb67d7372e63bd7bb2c7d063c2a49f2507ab
iotests/297: add --namespace-packages to mypy arguments

mypy is kind of weird about how it handles imports. For legacy reasons,
it won't load PEP 420 namespaces, because of logic implemented prior to
that becoming a standard.

So, if you plan on using any, you have to pass
--namespace-packages. Alright, fine.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-9-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
tests/qemu-iotests/297