plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

Add `scipy-stubs` as dev dependency

Open jorenham opened this issue 6 months ago • 2 comments

This adds scipy-stubs as an optional development dependency. It can help quite a bit with IDE supports, such as autocompletion and introspection. It requires no configuration or mypy plugins, and there's zero runtime impact. So even if you don't care about typing annotations, you can view this as a free DX improvement :)

jorenham avatar Jun 26 '25 17:06 jorenham

@jorenham Thanks for the contribution!

We try to keep our dev dependencies pretty minimal and only include packages which are strictly required for the dev process. If you want to make a case for how specifically to use scipy-stubs in the dev process, we are open to it; that info should be added to CONTRIBUTING.md.

emilykl avatar Nov 17 '25 21:11 emilykl

If you want to make a case for how specifically to use scipy-stubs in the dev process, we are open to it; that info should be added to CONTRIBUTING.md.

It's a stub-package, so there's no need to use it; once installed, the benefits I listed above will automatically come into effect. So no config or code changes required. So it's not something that contributors even need to know about for them to be able to contribute.

jorenham avatar Nov 18 '25 01:11 jorenham