]> Git Repo - qemu.git/commitdiff
iotests/297: add --namespace-packages to mypy arguments
authorJohn Snow <[email protected]>
Thu, 27 May 2021 21:16:52 +0000 (17:16 -0400)
committerJohn Snow <[email protected]>
Tue, 1 Jun 2021 20:21:21 +0000 (16:21 -0400)
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 <[email protected]>
Reviewed-by: Cleber Rosa <[email protected]>
Message-id: 20210527211715[email protected]
Signed-off-by: John Snow <[email protected]>
tests/qemu-iotests/297

index a37910b42d96b3eb35cfda6708fd6186dee46ef8..433b7323368de4f0353961b57f47546f6073a759 100755 (executable)
@@ -95,6 +95,7 @@ def run_linters():
                             '--warn-redundant-casts',
                             '--warn-unused-ignores',
                             '--no-implicit-reexport',
+                            '--namespace-packages',
                             filename),
                            env=env,
                            check=False,
This page took 0.03209 seconds and 4 git commands to generate.