@@ -52,16 +52,16 @@ extras = ["scipy-stubs[scipy]"]
5252ci = [" packaging>=25.0" ]
5353lint = [
5454 { include-group = " extras" },
55- " dprint-py> =0.50.1.4" ,
56- " ruff> =0.13.0" ,
57- " sp-repo-review[cli]> =2025.5.2" ,
55+ " dprint-py= =0.50.1.4" ,
56+ " ruff= =0.13.0" ,
57+ " sp-repo-review[cli]= =2025.5.2" ,
5858]
5959type = [
6060 { include-group = " extras" },
6161 { include-group = " ci" },
6262 " array-api-compat==1.12.0" , # bundled as `scipy._lib.array_api_compat`
63- " basedpyright> =1.31.4" ,
64- " mypy[faster-cache]>=1.17.1,<1.18 " ,
63+ " basedpyright= =1.31.4" ,
64+ " mypy[faster-cache]==1.18.1 " ,
6565]
6666dev = [
6767 { include-group = " lint" },
@@ -71,20 +71,24 @@ dev = [
7171[tool .poe .tasks .clean ]
7272cmd = """
7373rm -rf
74- **/*.pyc
75- **/__pycache__
76- **/.cache
77- **/.mypy_cache
78- **/.ruff_cache
79- **/.tox
74+ **/*.pyc
75+ **/__pycache__
76+ **/.cache
77+ **/.mypy_cache
78+ **/.ruff_cache
79+ **/.tox
8080"""
8181
8282[tool .poe .tasks .stubtest ]
8383cmd = """
84- uv run --no-editable --reinstall-package=scipy-stubs
85- stubtest --allowlist=.mypyignore $modules
84+ uv run
85+ --no-editable
86+ --reinstall-package=scipy-stubs
87+ stubtest
88+ --ignore-disjoint-bases
89+ --allowlist=.mypyignore
90+ scipy
8691"""
87- args = [{ name = " modules" , positional = true , multiple = true , default = " scipy" }]
8892
8993[tool .typos .files ]
9094extend-exclude = [" *.pyi" , " .mypyignore" ]
@@ -207,6 +211,7 @@ uv_sync_flags = ["--no-editable", "--reinstall-package=scipy-stubs"]
207211commands = [
208212 [
209213 " stubtest" ,
214+ " --ignore-disjoint-bases" ,
210215 " --allowlist=.mypyignore" ,
211216 { replace = " posargs" , default = [" scipy" ], extend = true },
212217 ],
0 commit comments