Skip to content

Releases: scipy/scipy-stubs

v1.16.3.0

28 Oct 22:05
Immutable release. Only release title and notes can be modified.
v1.16.3.0
e4bdcd5

Choose a tag to compare

This is the first scipy-stubs release that officially supports SciPy 1.16.3.

If you encounter any regressions or other issues, please report them at https://github.com/scipy/scipy-stubs/issues.

This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.

What's Changed

⏬ SciPy Changes

🐛 Fixes

  • optimize.minimize_scalar: Allow bounds without args by @wangenau in #950
  • fix mypy_primer comment workflow for forks by @jorenham in #951
  • optimize.least_squares: Allow scalar floating point return type in residual function by @haarisr in #960

📝 Documentation

🧹 Maintenance

  • 🔖 prepare for further development by @jorenham in #946
  • ⬆️ Bump astral-sh/setup-uv from 7.1.0 to 7.1.1 in the actions group by @dependabot[bot] in #947
  • ⬆️ Bump the actions group with 3 updates by @dependabot[bot] in #948
  • ⬆️ Bump pyrefly from 0.38.0 to 0.38.1 in the actions group by @dependabot[bot] in #952
  • ⬆️ Bump the actions group with 2 updates by @dependabot[bot] in #953
  • ⬆️ Bump basedpyright from 1.32.0 to 1.32.1 in the actions group by @dependabot[bot] in #955
  • 💡 Update pyrefly suppressions to reflect rename of typed-dict-key-error to bad-typed-dict-key by @rchen152 in #956
  • ⬆️ Bump ruff from 0.14.1 to 0.14.2 in the actions group by @dependabot[bot] in #957
  • ⬆️ Bump the actions group with 2 updates by @dependabot[bot] in #958
  • ⬆️ Bump pyrefly from 0.38.2 to 0.39.0 in the actions group by @dependabot[bot] in #959
  • ⬆️ Bump pyrefly from 0.39.0 to 0.39.1 in the actions group by @dependabot[bot] in #961

New Contributors

Full Changelog: v1.16.2.4...v1.16.3.0

v1.16.2.4

17 Oct 03:52
v1.16.2.4
528e977

Choose a tag to compare

This release targets SciPy 1.16.2 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.

Resolved Issues

  • optimize.least_squares resolves as a module type instead of a function type (mypy-only) by @hypzz in #939
  • Could not access item in TypedDict for properties of scipy.signal.find_peaks by @Stephen-Armstrong in #944

What's Changed

✨ Improvements

  • signal.find_peaks: specialized return types for all 32 input combinations by @jorenham in #945

↪️ Workarounds

  • optimize.least_squares: workaround for an import resolution bug in mypy by @jorenham in #940

📝 Documentation

🧹 Maintenance

Full Changelog: v1.16.2.3...v1.16.2.4

v1.16.2.3

08 Oct 01:38
v1.16.2.3
2897ee4

Choose a tag to compare

Note

Due to errors in a dependency specifier, the scipy-stubs releases v1.16.2.1 and v1.16.2.2 had to be yanked on PyPI. These versions are therefore also included in the changelog below.

This release targets SciPy 1.16.2 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.

What's Changed

✨ Improvements

🐛 Fixes

📝 Documentation

  • add pandas to the list of dependents by @jorenham in #885
  • add colour-science/colour-checker-detection to the list of dependents by @jorenham in #886
  • document generic integrate.OdeSolver and integrate.DenseOutput types by @jorenham in #887
  • fancier readme badges by @jorenham in #904
  • Add bashtage/linearmodels to the list of dependents by @jorenham in #910
  • Add theislab/anndata2ri to the list of dependents by @jorenham in #914

✅ Testing

⬆️ Dependencies

  • bump mypy to 1.18.1 and --ignore-disjoint-bases by @jorenham in #877
  • Bump dprint-py from 0.50.1.4 to 0.50.2.0 in the actions group by @dependabot[bot] in #888
  • Bump astral-sh/setup-uv from 6.6.1 to 6.7.0 in the actions group by @dependabot[bot] in #889
  • Bump the actions group with 3 updates by @dependabot[bot] in #891
  • Bump basedpyright from 1.31.4 to 1.31.5 in the actions group by @dependabot[bot] in #892
  • Bump ruff from 0.13.1 to 0.13.2 in the actions group by @dependabot[bot] in #894
  • Bump crate-ci/typos from 1.36.2 to 1.36.3 in the actions group by @dependabot[bot] in #896
  • Bump scientific-python/repo-review from 0.12.2 to 0.12.3 in the actions group by @dependabot[bot] in #897
  • Bump astral-sh/setup-uv from 6.7.0 to 6.8.0 in the actions group by @dependabot[bot] in #898
  • optype 0.14.0 by @jorenham in #899
  • Bump the actions group with 2 updates by @dependabot[bot] in #900
  • bump basedpyright to 1.31.6 and sp-repo-review to 2025.10.1 by @jorenham in #903
  • Bump peter-evans/create-or-update-comment from 4 to 5 in the actions group by @dependabot[bot] in #905
  • Bump ruff from 0.13.2 to 0.13.3 in the actions group by @dependabot[bot] in #906
  • Bump crate-ci/typos from 1.37.1 to 1.37.2 in the actions group by @dependabot[bot] in #917
  • Bump crate-ci/typos from 1.37.2 to 1.38.0 in the actions group by @dependabot[bot] in #918
  • bump pyrefly to 0.36.1 by @jorenham in #920
  • bump ruff to 0.14.0 by @jorenham in #922
  • bump uv_build to 0.8.24 by @jorenham in #923
  • bump uv_build to 0.9.0 by @jorenham in #928
  • bump astral-sh/setup-uv to v7.0.0 by @jorenham in #929

Other Changes

New Contributors

Full Changelog: v1.16.2.0...v1.16.2.3

v1.16.2.2

07 Oct 22:50
v1.16.2.2
a975f23

Choose a tag to compare

Warning

Yanked: Incorrect upper bound on the optype version (again). Use scipy-stubs 1.16.2.3 instead.

See the 1.16.2.1 release for additional release notes.

What's Changed

🐛 Fixes

Other Changes

Full Changelog: v1.16.2.1...v1.16.2.2

v1.16.2.1

07 Oct 22:14
v1.16.2.1
2efc26c

Choose a tag to compare

Warning

Yanked: Missing upper bound on the optype version. Use scipy-stubs 1.16.2.3 instead.

This release targets SciPy 1.16.2 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.0.

What's Changed

✨ Improvements

🐛 Fixes

📝 Documentation

  • add pandas to the list of dependents by @jorenham in #885
  • add colour-science/colour-checker-detection to the list of dependents by @jorenham in #886
  • document generic integrate.OdeSolver and integrate.DenseOutput types by @jorenham in #887
  • fancier readme badges by @jorenham in #904
  • Add bashtage/linearmodels to the list of dependents by @jorenham in #910
  • Add theislab/anndata2ri to the list of dependents by @jorenham in #914

✅ Testing

⬆️ Dependencies

  • ⬆️ bump mypy to 1.18.1 and --ignore-disjoint-bases by @jorenham in #877
  • ⬆️ Bump dprint-py from 0.50.1.4 to 0.50.2.0 in the actions group by @dependabot[bot] in #888
  • ⬆️ Bump astral-sh/setup-uv from 6.6.1 to 6.7.0 in the actions group by @dependabot[bot] in #889
  • ⬆️ Bump the actions group with 3 updates by @dependabot[bot] in #891
  • ⬆️ Bump basedpyright from 1.31.4 to 1.31.5 in the actions group by @dependabot[bot] in #892
  • ⬆️ Bump ruff from 0.13.1 to 0.13.2 in the actions group by @dependabot[bot] in #894
  • ⬆️ Bump crate-ci/typos from 1.36.2 to 1.36.3 in the actions group by @dependabot[bot] in #896
  • ⬆️ Bump scientific-python/repo-review from 0.12.2 to 0.12.3 in the actions group by @dependabot[bot] in #897
  • ⬆️ Bump astral-sh/setup-uv from 6.7.0 to 6.8.0 in the actions group by @dependabot[bot] in #898
  • ⬆️ optype 0.14.0 by @jorenham in #899
  • ⬆️ Bump the actions group with 2 updates by @dependabot[bot] in #900
  • ⬆️ bump basedpyright to 1.31.6 and sp-repo-review to 2025.10.1 by @jorenham in #903
  • ⬆️ Bump peter-evans/create-or-update-comment from 4 to 5 in the actions group by @dependabot[bot] in #905
  • ⬆️ Bump ruff from 0.13.2 to 0.13.3 in the actions group by @dependabot[bot] in #906
  • ⬆️ Bump crate-ci/typos from 1.37.1 to 1.37.2 in the actions group by @dependabot[bot] in #917
  • ⬆️ Bump crate-ci/typos from 1.37.2 to 1.38.0 in the actions group by @dependabot[bot] in #918
  • ⬆️ bump pyrefly to 0.36.1 by @jorenham in #920
  • ⬆️ bump ruff to 0.14.0 by @jorenham in #922
  • ⬆️ bump uv_build to 0.8.24 by @jorenham in #923

Other Changes

New Contributors

Full Changelog: v1.16.2.0...v1.16.2.1

v1.16.2.0

11 Sep 23:28
v1.16.2.0
b981316

Choose a tag to compare

This is the first scipy-stubs release that officially supports SciPy 1.16.2.

If you encounter any regressions or other issues, please report them at https://github.com/scipy/scipy-stubs/issues.

This release requires Python 3.11-3.14, NumPy 1.25.2 or greater, and optype 0.13.4.

What's Changed

🐛 Fixes

  • sparse.linalg: fix and improve ARPACK eigs and eigsh return dtypes by @JulVandenBroeck in #831
  • stats.sampling: annotate __cinit__ as __new__, not __init__ by @jorenham in #847
  • optimize: also accept None for certain curve_fit kwargs by @jorenham in #869

✨ Improvements

  • signal: improve resample by @jorenham in #828
  • signal: improve resample_poly by @jorenham in #829
  • sparse.linalg: fix and improve ARPACK eigs and eigsh return dtypes by @JulVandenBroeck in #831
  • optimize: support plural bounds in linprog by @Rupt in #860
  • signal: annotate the private functions in _signaltools by @jorenham in #867
  • optimize: have linprog return a specialized OptimizeResult by @jorenham in #868
  • signal: update ShortTimeFFT with the new private attributes by @jorenham in #875

📝 Documentation

✅ Testing

⬆️ Dependencies

  • bump uv and ruff by @jorenham in #826
  • Bump ruff from 0.12.10 to 0.12.11 in the actions group by @dependabot[bot] in #849
  • Bump crate-ci/typos from 1.35.5 to 1.35.7 in the actions group by @dependabot[bot] in #853
  • Bump astral-sh/setup-uv from 6.6.0 to 6.6.1 in the actions group by @dependabot[bot] in #854
  • Bump crate-ci/typos from 1.35.7 to 1.36.0 in the actions group by @dependabot[bot] in #855
  • Bump basedpyright from 1.31.2 to 1.31.4 in the actions group by @dependabot[bot] in #856
  • Bump pypa/gh-action-pypi-publish from 1.12.4 to 1.13.0 in /.github/workflows in the github_actions group across 1 directory by @dependabot[bot] in #857
  • Bump crate-ci/typos from 1.36.0 to 1.36.2 in the actions group by @dependabot[bot] in #858
  • Bump ruff from 0.12.11 to 0.12.12 in the actions group by @dependabot[bot] in #859
  • bump ruff to 0.13.0 by @jorenham in #865
  • bump basedpyright to 1.31.4 by @jorenham in #866
  • upgrade scipy to 1.16.2 by @jorenham in #871

Other Changes

  • 🔖 prepare for further development by @jorenham in #825
  • 🔨 add vibe-coded scipy usage survey script by @jorenham in #843
  • 🐴 deal with new mypy 1.18.0+dev errors by @jorenham in #845
  • ♻️ sparse: extract common type alias for 2d sparse arrays by @jorenham in #846
  • 🤖 have dependabot ignore scipy by @jorenham in #873
  • 🤖 remove outdated Copilot output handling instructions by @jorenham in #874

🎉 New Contributors

  • @Rupt made their first contribution in #860

Full Changelog: v1.16.1.1...v1.16.2.0

v1.16.1.1

21 Aug 00:57
v1.16.1.1
f4c171a

Choose a tag to compare

This release targets SciPy 1.16.1 and requires Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.13.4.

What's Changed

✨ Improvements

🐛 Fixes

⬆️ Dependencies

Other Changes

  • ♻️ stats: consistent typar naming and remove redundant float | defaults by @jorenham in #807

Full Changelog: v1.16.1.0...v1.16.1.1

v1.16.1.0

01 Aug 02:41
v1.16.1.0
8244740

Choose a tag to compare

This is the first scipy-stubs release that officially supports SciPy 1.16.1. In these last 4 weeks of hard work, we've made many improvements to the accuracy and correctness of many annotations, and improved compatibility with older NumPy versions.
If you encounter any regressions or other issues, please report them at https://github.com/scipy/scipy-stubs/issues.

This release requires Python 3.11-3.14, NumPy 1.25.2 or greater, and optype 0.13.1 or greater.

What's Changed

👽️ SciPy 1.16.1 Changes

✨ Improvements

  • 🏷️ linalg: stub more of the internal scipy machinery by @jorenham in #710
  • linalg: support sparse arrays in clarkson_woodruff_transform by @jorenham in #711
  • ✨ stub scipy._cyutility by @jorenham in #712
  • 🏷️ _lib: stub _ccallback_c and _array_api[_compat_vendor] by @jorenham in #713
  • 🏷️ cluster: stub internal cython submodules by @jorenham in #714
  • 🏷️ integrate: stub integrate._rules.* (private api) by @jorenham in #715
  • 🏷️ integrate: stub the remaining private C-extension modules by @jorenham in #716
  • 🏷️ interpolate: stub the remaining private C- and cython modules by @jorenham in #717
  • 🏷️ io.matlab: stub private cython modules by @jorenham in #718
  • 🏷️ sparse: added stubs for all formats in kron and kronsum by @JulVandenBroeck in #719
  • 🏷️ ndimage: stub the remaining private modules by @jorenham in #720
  • 🏷️ optimize: stub the remaining private modules by @jorenham in #722
  • 🏷️ signal: stub the remaining private modules by @jorenham in #723
  • 🏷️ sparse: stub the remaining private modules by @jorenham in #724
  • 🏷️ spatial: stub the remaining private modules by @jorenham in #725
  • 🏷️ special: stub the remaining private modules by @jorenham in #726
  • 🏷️ stats: stub the remaining private modules by @jorenham in #727
  • stats: improved [differential_]entropy annotations by @jorenham in #738
  • stats: improved Covariance generic type parameter inference by @jorenham in #739
  • ndimage: improved fourier_* annotations by @jorenham in #740
  • linalg: improved basic solve* annotations by @jorenham in #741
  • linalg: improved inv annotations by @jorenham in #743
  • linalg: improved det annotations by @jorenham in #744
  • 🧑‍💻 vscode tasks for basedpyright, mypy, and stubtest by @jorenham in #754
  • linalg: improved eigh return type inference for float64 by @jorenham in #755
  • 🏷️ sparse: overhauled stubs for diags_array, eye_array, and their matrix equivalents by @JulVandenBroeck in #733
  • integrate: improve the odeint signature by @jorenham in #763
  • integrate: improved solve_ivp annotations by @jorenham in #765
  • signal: improved convolution and correlation functions by @jorenham in #767
  • signal: improved filter function annotations by @jorenham in #768
  • Add hstack and vstack overloads for different sparse formats by @JulVandenBroeck in #774

🐛 Fixes

  • 🐛 sparse.linalg: allow passing arrays to expm_multiply by @jorenham in #708
  • 🐛 sparse.linalg: fix several LinearOperator issues by @jorenham in #709
  • 🏷️ sparse: improved init stubs of sparse arrays with shape as positional argument. by @JulVandenBroeck in #704
  • 🐛 sparse: csc array/matrix constructor fixes by @jorenham in #753
  • 🩹 fix missing type arguments on numpy<2.3 by @jorenham in #779
  • 🚨 fftpack: fix stubtest error on numpy<2 by @jorenham in #786
  • ✅ fix failing type-tests on numpy==2.2.* by @jorenham in #787
  • ✅ fix failing type-tests on numpy==2.1.* by @jorenham in #788
  • ✅ fix failing type-tests on numpy<2.1 by @jorenham in #789
  • 💚 fix CI numpy testing matrix by @jorenham in #778
  • 🐛 interpolate: Fix incorrect return type for make_lsq_spline by @elael in #776
  • 🩹 optimize: fix compatibility issues with ABCPolyBase on numpy==2.1 by @jorenham in #780
  • 🩹 fix compatibility issues with np.[c]longdouble on numpy<2.2 by @jorenham in #781
  • 🗑️ special.comb: remove expired @deprecated non-integer exact=True overloads by @jorenham in #793

📝 Documentation

  • add a "who's using scipy-stubs" section to the readme by @jorenham in #732
  • add scanpy as dependent project by @jorenham in #747
  • CONTRIBUTING.md fixes by @jorenham in #760
  • add xarray, radioactivedecay, neurogym, and foamlib to the list of dependents by @jorenham in #772

⬆️ Dependencies

Other Changes

  • 🔖 prepare for further development by @jorenham in #701
  • 🔨 dev script for listing all (private) unstubbed modules by @jorenham in #706
  • 🎨 use 88 as max line length for scipts/*.py by @jorenham in #721
  • 📌 pin CI action version tags by @jorenham in #728
  • ♻️ always use optype.numpy.compat for abstract scalar types by @jorenham in #730
  • ♻️ reduce reliance on "fake" *._typing modules by @jorenham in #731
  • ♻️ explicit onp.AnyFloat64DType | None by @jorenham in #735
  • 🎨 workaround for path-dependent pyright bug by shuffling disjoint overloads by @jorenham in #745
  • 🎨 linalg: simplified _decomp_svd type aliases by @jorenham in #749
  • 🤖 correct TypeVarTuple naming in copilot instructions by @jorenham in #764
  • 🐴 work around false positive overload-overlap mypy errors on numpy>=2.2 by @jorenham in #782
  • 🤡 work around false positive reportOverlappingOverload pyright errors on numpy<2.1 by @jorenham in #783
  • 🐴 special: work around false positive overload-overlap mypy errors on numpy<2.1 by @jorenham in #785
  • 📄 explicit license-files by @jorenham in #795
  • 🧱 uv_build by @jorenham in #796

🎉 New Contributors

Read more

v1.16.0.2

01 Jul 23:18
v1.16.0.2
d0e56b2

Choose a tag to compare

What's Changed

✨ Improvements

🐛 Fixes

  • stats: private _continuous_distns functions should accept scalars by @jorenham in #694
  • special.logsumexp: add missing axis parameter defaults by @jorenham in #698

📝 Documentation

Other Changes

Full Changelog: v1.16.0.1...v1.16.0.2

v1.16.0.1

30 Jun 21:09
v1.16.0.1
8f2ef65

Choose a tag to compare

This is the second scipy-stubs release that supports SciPy 1.16. In these last 2 weeks of hard work, we've also made many improvements to the accuracy, correctness, and documentation of scipy-stubs.
If you encounter any regressions or other issues, please report them at https://github.com/scipy/scipy-stubs/issues.

This release requires Python 3.11-3.13 and NumPy 1.25.2 or greater.

What's Changed

👽️ SciPy Changes

  • scipy 1.16 changes for optimize.fmin_l_bfgs_b by @jorenham in #643

✨ Improvements

  • stats: Annotate the private functions and consts in _continuous_distns by @jorenham in #650
  • cluster.vq: improved dtype annotations by @jorenham in #651
  • interpolate: Generic Krogh and barycentric interpolator types by @jorenham in #667
  • optimize: Generic Bounds type by @jorenham in #675
  • sparse.linalg: Improved linear solver function annotations by @jorenham in #678
  • fft: improved *fft, *fft2 and *fftn annotations by @jorenham in #681
  • fft: improved [i]fftshift annotations by @jorenham in #682
  • fft: sync (private) signatures of _realtransforms and _realtransforms_backend by @jorenham in #684

🐛 Fixes

  • stats.qmc: Add missing seed constructor parameters by @jorenham in #647
  • optimize: accept tuple functions in fmin_l_bfgs_b by @jorenham in #649
  • cluster.vq: Add missing seed parameter to kmeans and kmeans2 by @jorenham in #652
  • interpolate: Add missing seed kwarg to the BarycentricInterpolator constructor by @jorenham in #654
  • linalg: Add missing seed kwarg to clarkson_woodruff_transform by @jorenham in #655
  • optimize: Add missing seed kwargs to the global optimize functions by @jorenham in #656
  • sparse: Add missing random_state kwarg to random_array and rand[om] by @jorenham in #657
  • sparse.linalg: Add missing random_state kwarg to svds by @jorenham in #658
  • spatial.distance: Add missing seed kwarg to directed_hausdorff by @jorenham in #659
  • spatial.transform: Add missing random_state kwarg to Rotation.random by @jorenham in #660
  • stats: Add missing random_state kwargs by @jorenham in #661
  • sparse: fix sparse array/matrix indexing by @jorenham in #664
  • signal: simplify get_window input type by @jorenham in #665
  • sparse: Transposition duality of CSR and CSC arrays by @jorenham in #669
  • sparse.linalg: Fix factorize return type annotations by @jorenham in #679
  • interpolate: consistent RBFInterpolator generic type parameter ordering by @jorenham in #685

⬆️ Dependencies

📝 Documentation

Other Changes

  • 🏷️ io: loadmat return dict with gradual value types by @jorenham in #676
  • 💬 update string literals for SciPy 1.16.0 by @jorenham in #683
  • 🔧 update release note config by @jorenham in #686
  • 🧑‍💻 update editorconfig and vscode settings by @jorenham in #687
  • 🧑‍💻 dprint formatter for markdown, json, toml and yaml by @jorenham in #688
  • ⬆️ Bump crate-ci/typos from 1.33.1 to 1.34.0 in the actions group by @dependabot in #689

Full Changelog: v1.16.0.0...v1.16.0.1