Skip to content

Commit de3bec4

Browse files
authored
add scipy-stubs as non-typeshed stub package (#18832)
<!-- If this pull request fixes an issue, add "Fixes #NNN" with the issue number. --> SciPy itself has no `py.typed` and barely any stubs, so I wrote [`scipy-stubs`](https://github.com/scipy/scipy-stubs). Recently, it has been accepted as an official scipy project. This stubs-only package is *complete* (no `untyped`) and *valid* (according to mypy, stubtest, pyright, basedmypy and basedpyright), and carefully annotated (by humans). And for what it's worth, it's also on the list of `mypy_primer` projects. I'm open to any feedback, questions, and ideas in general; no need to hold back :) <!-- Checklist: - Read the [Contributing Guidelines](https://github.com/python/mypy/blob/master/CONTRIBUTING.md) - Add tests for all changed behaviour. - If you can't add a test, please explain why and how you verified your changes work. - Make sure CI passes. - Please do not force push to the PR once it has been reviewed. -->
1 parent df9ddfc commit de3bec4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/stubinfo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ def stub_distribution_name(module: str) -> str | None:
291291
# for additions here
292292
"pandas": "pandas-stubs", # https://github.com/pandas-dev/pandas-stubs
293293
"lxml": "lxml-stubs", # https://github.com/lxml/lxml-stubs
294+
"scipy": "scipy-stubs", # https://github.com/scipy/scipy-stubs
294295
}
295296

296297

0 commit comments

Comments
 (0)