]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mypy: skip follow_imports for prettytable
authorSun Yuechi <sunyuechi@iscas.ac.cn>
Sun, 7 Jun 2026 14:19:08 +0000 (22:19 +0800)
committerSun Yuechi <sunyuechi@iscas.ac.cn>
Sat, 20 Jun 2026 06:49:16 +0000 (14:49 +0800)
With test venvs on system site-packages, mypy picks up the system
prettytable (3.4.0+, typed). It flags mgr's add_row(tuple) against the
list[Any] signature (src/mypy.ini) and qa's float_format = str against
the dict[str, str] property (qa/mypy.ini). Skip follow_imports in both.

Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
qa/mypy.ini
src/mypy.ini

index 1215375ed9b859e1a000693758d35bad90ce592c..3d88b720b9468ec7980481f999c0bcf150c2cc75 100644 (file)
@@ -1,2 +1,6 @@
 [mypy]
-ignore_missing_imports = True
\ No newline at end of file
+ignore_missing_imports = True
+
+[mypy-prettytable]
+ignore_missing_imports = True
+follow_imports = skip
index 9fe2f82a535df84c3c7d5b2d662e47566dacc5fa..579644374c5a6e3d2c0e3043a1541bb5d48dd5d2 100755 (executable)
@@ -36,6 +36,7 @@ ignore_missing_imports = True
 
 [mypy-prettytable]
 ignore_missing_imports = True
+follow_imports = skip
 
 [mypy-jsonpatch]
 ignore_missing_imports = True