Skip to content

Releases: scipy/scipy-stubs

v1.15.2.2 (scipy 1.15.2)

07 Apr 20:58
v1.15.2.2
5630a80
Compare
Choose a tag to compare

What's Changed

โœจ Improvements

  • ndimage: improved filter and measurement function annotations by @jorenham in #499
  • optimize: narrowed OptimizeResult.{fun,x} attrs for minimize[_scalar] by @jorenham in #504

๐Ÿ› Fixes

  • adjust pyright config for optype.numpy compatibility by @jorenham in #491
  • interpolate: accept ndarray for points in RegularGridInterpolator by @jorenham in #501
  • optimize: accept a scalar for x0 in minimize by @jorenham in #502
  • optimize: accept a scalar for x0 in fmin* by @jorenham in #503

๐Ÿ“ Documentation

โฌ†๏ธ Dependencies

Other Changes

  • ๐Ÿ”– prepare for further development by @jorenham in #480
  • ๐Ÿ‘ท ensure pyright compatibility by @jorenham in #482
  • ๐Ÿ”ง adjust basedmypy config for mypy compat by @jorenham in #483
  • ๐Ÿ”ง fix vscode settings syntax by @jorenham in #485
  • ๐Ÿ”ง remove files from [tool.mypy] by @jorenham in #486
  • ๐Ÿ’š fix mypy_primer failure and mypy/basedmypy compat by @jorenham in #500

Full Changelog: v1.15.2.1...v1.15.2.2

v1.15.2.1 (scipy 1.15.2)

12 Mar 13:32
v1.15.2.1
4e581c8
Compare
Choose a tag to compare

What's Changed

โœจ Improvements

  • interpolate: improved support for complex splines by @jorenham in #477

๐Ÿ› Fixes

๐Ÿ“ Documentation

Dependencies

  • โฌ†๏ธ bump ruff to 0.9.7 by @jorenham in #460
  • โฌ†๏ธ basedpyright 1.28.1 and ruff 0.9.9 by @jorenham in #466

Other Changes

New Contributors

Full Changelog: v1.15.2.0...v1.15.2.1

v1.15.2.0

17 Feb 05:04
v1.15.2.0
76b2d8a
Compare
Choose a tag to compare

โญ Highlights

  • The repo has been transferred from jorenham/scipy-stubs to scipy/scipy-stubs by @rgommers
  • Support for SciPy 1.15.2 and NumPy 2.2.3

What's Changed

โœจ Improvements

  • special: improved dtype handling in the "basic" functions by @jorenham in #419
  • signal: generic lti, and dlti types by @jorenham in #425
  • optimize: improved linprog and milp annotations by @jorenham in #427
  • optimize: method-specific overloads and options for minimize_scalar by @jorenham in #428
  • optimize: Generic InverseJacobian and related types by @jorenham in #429
  • signal: improvements related to czt and zoom_fft by @jorenham in #430
  • sparse: generic sparray by @jorenham in #435
  • stats.zmap: accept complex input and basic shape-typing by @jorenham in #457

๐Ÿ› Fixes

  • stats: fix rv_discrete sample constructor by @jorenham in #418
  • signal: add plain number option for find_peaks argument prominence by @drewsilcock in #448
  • stats: make optimizer argument optional in rv_continuous.fit() by @drewsilcock in #451

๐Ÿ“ Documentation

โฌ†๏ธ Dependencies

Other Changes

  • ๐Ÿ”– prepare for further development by @jorenham in #415
  • ๐ŸŽจ optype 0.9 simplifications by @jorenham in #424
  • ๐Ÿ”จ more tox, less poe by @jorenham in #431
  • โฌ†๏ธ bump ruff to 0.9.3 by @jorenham in #432
  • ๐ŸŽจ sparse: prefer optype.numpy over scipy._typing by @jorenham in #434
  • ๐Ÿ’ธ remove the sponsor button by @jorenham in #437
  • ๐Ÿ”ง scipy.org as homepage and add scipy-dev as maintainer by @jorenham in #440
  • ๐Ÿ”ง .toml auto-format config for vscode users by @jorenham in #444
  • ๐Ÿšš change jorenham/scipy-stubs refs to scipy/scipy-stubs by @jorenham in #446
  • ๐Ÿ”จ use uv as source of python versions by @jorenham in #452

New Contributors

Full Changelog: v1.15.1.0...v1.15.2.0

v1.15.1.0 (scipy 1.15.1)

11 Jan 01:40
v1.15.1.0
9c6a2d7
Compare
Choose a tag to compare

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

What's Changed

Improvements

  • ๐ŸŽจ remove outdated # TODO's by @jorenham in #408
  • โœจ spatial: generic [c]KDTree and other improvements by @jorenham in #413

Dependencies

Other Changes

  • ๐ŸŽจ fix and run the FixTrailingComma codemod by @jorenham in #397

Full Changelog: v1.15.0.0...v1.15.1.0

v1.15.0.0 (scipy 1.15.0)

01 Jan 18:57
v1.15.0.0
d715ec0
Compare
Choose a tag to compare

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

What's Changed

SciPy 1.15.0 compatability

  • โฌ†๏ธ increase the minimum scipy version to 1.15.0rc1 by @jorenham in #327
  • ๐Ÿšง temporarily ignore all stubtest errors by @jorenham in #326
  • โšฐ๏ธ misc: remove all code by @jorenham in #328
  • โœจ differentiate: preliminary (yet complete) stubs by @jorenham in #329
  • ๐Ÿท๏ธ _typing: SPEC-7 compliant (private) ToRNG type alias (previously Seed) by @jorenham in #333
  • ๐Ÿ‘ฝ๏ธ fft[pack]: 1.15.0 support by @jorenham in #336
  • ๐Ÿ‘ฝ๏ธ integrate: 1.15.0 support by @jorenham in #337
  • ๐Ÿ‘ฝ๏ธ interpolate: 1.15.0 support by @jorenham in #338
  • ๐Ÿ‘ฝ๏ธ constants: 1.15.0 support by @jorenham in #330
  • ๐Ÿ‘ฝ๏ธ _lib: 1.15.0 support by @jorenham in #331
  • ๐Ÿ‘ฝ๏ธ cluster: 1.15.0 support by @jorenham in #334
  • ๐Ÿ‘ฝ๏ธ io: 1.15.0 support by @jorenham in #341
  • ๐Ÿ‘ฝ๏ธ linalg.interpolative: 1.15.0 support by @jorenham in #343
  • ๐Ÿ‘ฝ๏ธ linalg: 1.15.0 support by @jorenham in #344
  • ๐Ÿ‘ฝ๏ธ version: 1.15.0 remove commit_count by @jorenham in #345
  • ๐Ÿ‘ฝ๏ธ ndimage: 1.15.0 support by @jorenham in #346
  • ๐Ÿ‘ฝ๏ธ optimize: SPEC 7 & scipy 1.15.0 support by @jorenham in #347
  • ๐Ÿ‘ฝ๏ธ sparse: 1.15.0 support by @jorenham in #349
  • ๐Ÿ‘ฝ๏ธ special: 1.15.0 support by @jorenham in #351
  • ๐Ÿ‘ฝ๏ธ signal: 1.15.0 support by @jorenham in #348
  • ๐Ÿ‘ฝ๏ธ spatial: 1.15.0 support and many improvements by @jorenham in #350
  • ๐Ÿ‘ฝ๏ธ stats: 1.15.0 support and several improvements by @jorenham in #353
  • ๐Ÿ‘ฝ๏ธ sparse: accept axes: tuple[int[:], int[:]] in coo_array.tensordot by @jorenham in #357
  • ๐Ÿ‘ฝ๏ธ stats: 1.15.0 new distribution infrastructure by @jorenham in #360
  • ๐Ÿ’ฌ interpolate: fix scipy version in interpnd deprecation warning messages by @jorenham in #366
  • ๐Ÿ’ฌ special: mention the deprecation version in lpn and [c]lpmn by @jorenham in #367
  • ๐Ÿ—‘๏ธ interpolate: deprecate the dfitpack functions, fix & improve the sp* functions by @jorenham in #372
  • ๐Ÿ“Œ pin scipy<1.16 by @jorenham in #371
  • ๐Ÿ‘ฝ๏ธ scipy==1.15.0rc2 by @jorenham in #376

Improvements

  • โœจ more precise __config__ and __init__ annotations by @jorenham in #362
  • โœจ _lib: improved annotations by @jorenham in #364
  • โœจ special: several improved ufuncs by @jorenham in #374
  • โœจ special: ufunc improvements by @jorenham in #375
  • โœจ signal: complete _filter_design, fix and improve _czt by @jorenham in #378
  • โœจ signal: complete _signaltools by @jorenham in #379
  • โœจ signal: complete _fir_filter_design.* en max_len_seq by @jorenham in #384
  • โœจ signal: complete _ltisys.* by @jorenham in #385
  • ๐ŸŽจ optype 0.8 simplifications by @jorenham in #382
  • ๐ŸŽจ stats: simplify _distn_infrastructure with optype 0.8 by @jorenham in #387
  • ๐ŸŽจ _typing: DRY Falsy and Truthy type aliases by @jorenham in #390

Fixes

  • ๐Ÿ› sparse: add the missing sparse array/matrix dunder methods by @jorenham in #391

Documentation

  • ๐Ÿ“ several README.md improvements by @jorenham in #365
  • ๐Ÿ“ better describe the supported numpy versions by @jorenham in #368

Dependencies

  • ๐Ÿ“Œ upgrade optype to 0.8.0 by @jorenham in #380
  • โฌ†๏ธ update pre-commit hooks by @pre-commit-ci in #339
  • โฌ†๏ธ bump basedpyright to 1.23.1 by @jorenham in #356
  • โฌ†๏ธ bump ruff to 0.8.4 and disallow mdformat==0.7.20 by @jorenham in #358
  • โฌ†๏ธ bump mdformat to 0.7.21 by @jorenham in #359
  • โฌ†๏ธ bump basedmypy to 2.9.0 by @jorenham in #393
  • Bump astral-sh/setup-uv from 4 to 5 in the actions group by @dependabot in #361
  • Bump DavidAnson/markdownlint-cli2-action from 18 to 19 in the actions group by @dependabot in #386

Other Changes

  • ๐Ÿง‘โ€๐Ÿ’ป remove mypy from pre-commit (too slow) by @jorenham in #355
  • ๐Ÿ‘ท increase the timeout of the CI typetest step by @jorenham in #342
  • ๐Ÿ‘ท PyPI trusted publishing workflow by @jorenham in #383
  • ๐Ÿ‘ท exclude unsupported test matrix version combinations by @jorenham in #388
  • ๐Ÿ”ง configure pre-commit ci to use gitmoji style by @jorenham in #340
  • ๐Ÿ”ง de-duplicate the scipy version requirements by @jorenham in #389
  • ๐Ÿ”ง regex'd .mypyignore by @jorenham in #335
  • ๐Ÿ”ง .mypyignore cleanup by @jorenham in #392

Full Changelog: v1.14.1.6...v1.15.0.0

v1.14.1.6

15 Dec 23:07
v1.14.1.6
5714501
Compare
Choose a tag to compare

Highlights

  • scipy.interpolate: The public API is now 100% annotated (by humans)
  • scipy.sparse: The public API is now 100% annotated (by humans)
    • the sparse array- and matrix- types optionally accept a generic type parameter for their scalar type, e.g. coo_array[np.float64].
    • {coo, csr, dok}_array additionally accept a 2nd optional type parameter for their 1-d (tuple[int]) or 2-d (tuple[int, int]) shape-type.
  • fixed some typing issues on older numpy versions

What's Changed

Improvements

  • ๐ŸŽจ interpolate: remove duplicated function and classes by @jorenham in #267
  • โœจ interpolate: stub _dfitpack by @jorenham in #270
  • โœจ spatial: improve _qhull by @jorenham in #271
  • โœจ interpolate: complete and improve interpnd by @jorenham in #272
  • โœจ interpolate: complete _bsplines and _ndbspline by @jorenham in #273
  • โœจ interpolate: complete RBFInterpolator and Rbf by @jorenham in #274
  • โœจ interpolate: complete _fitpack_impl (1/2) by @jorenham in #275
  • โœจ interpolate: complete _fitpack_impl (2/2) by @jorenham in #276
  • โœจ interpolate: complete _fitpack2 by @jorenham in #277
  • โœจ interpolate: complete _polyint by @jorenham in #279
  • โœจ signal: complete frequency response functions in _filter_design by @jorenham in #287
  • ๐ŸŽจ sparse: code cleanup by @jorenham in #294
  • โœจ sparse.linalg: complete the LinearOperators in _interface by @jorenham in #295
  • ๐ŸŽจ sparse explicit imports in __init__ by @jorenham in #296
  • โœจ sparse.linalg: complete the matrix operation functions by @jorenham in #298
  • โœจ sparse.linalg: complete the matrix norm functions by @jorenham in #300
  • โœจ sparse.linalg: complete LaplacianNd & accept in dtypes in LinearOperator by @jorenham in #301
  • โœจ sparse.linalg: complete _dsolve by @jorenham in #302
  • โœจ sparse.linalg: complete _eigen.arpack by @jorenham in #303
  • โœจ sparse.linalg: complete lobpcg by @jorenham in #305
  • โœจ sparse.linalg: complete svds by @jorenham in #306
  • โœจ sparse: complete the sparse arrays and matrices by @jorenham in #307
  • โœจ sparse: complete eye[_array] by @jorenham in #309
  • โœจ sparse: complete identity by @jorenham in #310
  • โœจ sparse: complete kron[sum] by @jorenham in #311
  • โœจ sparse: complete {h,v}stack by @jorenham in #313
  • โœจ sparse: complete [sp]diags[_array] by @jorenham in #314
  • โœจ sparse: complete {load,save}_npz by @jorenham in #315
  • โœจ sparse: complete _sputils.* (private) by @jorenham in #316
  • โœจ sparse: complete _spfuncs.* (private) by @jorenham in #317
  • โœจ sparse: complete find and tri{l,u} by @jorenham in #318
  • โœจ sparse: complete rand[om[_array]] by @jorenham in #319
  • โœจ sparse: complete bmat and block_{array,diag} by @jorenham in #320
  • โœจ sparse: adopt the new generic sparse arrays in linalg and csgraph by @jorenham in #321
  • ๐ŸŽจ sparse: various linalg.LinearOperator tweaks and improvements by @jorenham in #322
  • โœจ sparse: complete linalg.ls{m,q}r by @jorenham in #323
  • โœจ sparse: complete linalg._isolve.utils.* (private) by @jorenham in #324
  • โœจ sparse: complete the remaining sparse.linalg functions by @jorenham in #325

Fixes

  • โœจ interpolate: complete _rgi by @jorenham in #278
  • ๐Ÿ› fix typing errors on numpy<1.24 by @jorenham in #292
  • โฌ†๏ธ bump basedmypy to 2.8.1 by @jorenham in #293
  • ๐Ÿ‘ฝ๏ธ work around several mypy bugs with numpy>=2.2.0 by @jorenham in #288

Documentation

  • ๐ŸŒ• interpolate: mark as 100% annotated by @jorenham in #280
  • ๐Ÿ“ correct the documented lowest supported numpy version by @jorenham in #281
  • ๐Ÿ“ installation instructions for humans by @jorenham in #282
  • ๐ŸŽค add podcast to README.md by @jorenham in #299
  • ๐Ÿ“ update the coverage progress for scipy.sparse by @jorenham in #304
  • ๐Ÿ“ mention gitmoji in CONTRIBUTING.md by @jorenham in #308

Dependencies

  • โฌ†๏ธ bump basedpyright to 1.22.1 and basedmypy to 2.8.0 by @jorenham in #255
  • dynamic minimum requirements by @miloth in #259
  • โฌ†๏ธ bump ruff to 0.8.2 by @jorenham in #265
  • โฌ†๏ธ bump the dev deps by @jorenham in #312

Other Changes

  • ๐Ÿง‘โ€๐Ÿ’ป uv-compatible mypy vscode config by @jorenham in #256
  • ๐Ÿ’ก add a comment to prevent breaking the #installation permalink by @jorenham in #266
  • ๐Ÿ”ง fix caching issue in poe {mypy,stubtest,typetest} by @jorenham in #269
  • ๐Ÿ”ง stricter basedpyright config by @jorenham in #283
  • ๐Ÿ‘ท include .mypyignore in sdist build by @jorenham in #284
  • โž– remove broken mdformat-pyproject by @miloth in #262
  • ๐Ÿ’š towards fixing the typetest-oldest-supported-numpy CI job by @jorenham in #289
  • ๐Ÿ‘ท fix and simplify the CI workflow by @jorenham in #290
  • Dynamic testing matrix for combinations of python and numpy versions. by @wolph in #286

New Contributors

AI generated Podcast

SciPy.Type.Hints.mp4

Full Changelog: v1.14.1.5...v1.14.1.6

v1.14.1.5

03 Dec 18:07
v1.14.1.5
2c882fa
Compare
Choose a tag to compare

Highlights

  • scipy-stubs is now also available on conda-forge, thanks to @lucascolley
  • scipy-stubs now uses uv for package- and project-management (previously poetry)
  • scipy.linalg has been significantly improved
    • functions with either real or complex output now use overloads for more accurate return types
    • almost all functions are now aware of the shape-type of input array-likes and output ndarrays.
  • scipy.optimize is now 100% annotated (by hand)
  • scipy.signal now accurately type-hints the "waveform" functions sawtooth, square, chirp, sweep_poly, unit_impulse and gausspulse
  • scipy.special now accurately type-hints 80% of its ufuncs using type-signature-specific overloaded protocols.

What's Changed

Improvements

  • *: switch to the shape-typed optype.numpy array-likes by @jorenham in #192
  • special: type-signature-specific annotations for 80% of the ufuncs by @jorenham in #189
  • special: update the development progress phase to ๐ŸŒ” by @jorenham in #194
  • signal: Add type stubs to _waveforms.pyi. by @pavyamsiri in #195
  • datasets: Improved type-hints with TypedDicts and Literals by @jorenham in #203
  • prefer optype.numpy for annotating arrays by @jorenham in #204
  • optimize: complete _constraints and _trustregion_constr.* by @jorenham in #205
  • optimize: complete the root-finding functions by @jorenham in #207
  • optimize: complete fixed_point by @jorenham in #208
  • optimize: complete curve_fit, leastsq, and fsolve by @jorenham in #209
  • optimize: complete HessianUpdateStrategy, BFGS, and SR1 by @jorenham in #210
  • optimize: complete basinhopping by @jorenham in #211
  • optimize: fix and complete direct by @jorenham in #212
  • optimize: complete _differentiable_functions (private) by @jorenham in #214
  • optimize: complete _lsq (private subpackage) by @jorenham in #215
  • Codemod for pos-only self parameters by @jorenham in #218
  • optimize: complete differential_evolution by @jorenham in #219
  • optimize: complete dual_annealing by @jorenham in #220
  • optimize: fix and improve minimize and basinhopping by @jorenham in #221
  • optimize: complete shgo, improve basinhopping by @jorenham in #222
  • optimize: complete line_search by @jorenham in #223
  • optimize: complete _dcsrch (private) by @jorenham in #224
  • optimize: complete linear_sum_assignment by @jorenham in #225
  • optimize: complete quadratic_assignment by @jorenham in #227
  • signal: Replace the final Untyped in _short_time_fft.pyi. by @pavyamsiri in #226
  • optimize: complete _shgo_lib (private) by @jorenham in #228
  • optimize: complete _trlib and _trustregion* (private) by @jorenham in #236
  • optimize: complete _numdiff (private) by @jorenham in #237
  • optimize: complete _group_columns (private) by @jorenham in #238
  • optimize: remove _remove_redundancy (private) by @jorenham in #239
  • optimize: complete fmin_cobyla by @jorenham in #240
  • optimize: complete fmin_l_bfgs_b and LbfgsInvHessProduct by @jorenham in #241
  • optimize: complete fmin_slsqp by @jorenham in #242
  • linalg._basic: add overloads for shapes and dtypes by @jorenham in #244
  • linalg._decomp*: add overloads for shapes and dtypes by @jorenham in #245
  • linalg: improved special matrix constructor signatures by @jorenham in #246
  • linalg: improved norm signature by @jorenham in #247
  • linalg: improve the shape- & scalar-type overloads of various functions by @jorenham in #252

Documentation

  • add docs to the codegen/ directory by @jorenham in #200
  • improved README.md by @jorenham in #206
  • document that scipy-stubs is installable with conda by @jorenham in #230
  • ๐Ÿ“ update the scipy coverage phase table by @jorenham in #243
  • Add a highlights section in README.md by @jorenham in #249
  • update the README.md phase table to better reflect the Untyped counts by @jorenham in #253
  • prevent lock update with tools and uv setup guide by @miloth in #254

Dependencies

Other Changes

New Contributors

Full Changelog: v1.14.1.4...v1.14.1.5

v1.14.1.4

19 Nov 17:06
v1.14.1.4
3ea1900
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.14.1.3...v1.14.1.4

v1.14.1.3

08 Nov 22:40
v1.14.1.3
3342729
Compare
Choose a tag to compare

Highlights

Resolved issues

  • #134 - specializing scipy.optimize.OptimizeResult
  • #154 - select_range params in scipy.linalg._decomp can only be int{16,32,64} if select="i"
  • #155 - sync integrate._typing.QuadOpts with the kwargs of integrate.quad
  • #158 - scipy.spatial signature of [c]KDTree.query does not match docs
  • #159 - scipy.signal.find_peaks returned dictionary type is missing the 'widths' key
  • #163 - Wrong return type for scipy.fft.next_fast_len
  • #168 - scipy.stats.qmc.scale does not accept numpy array with typed shape as input when type checked with pyright

Merged PR's

Full Changelog: v1.14.1.2...v1.14.1.3

v1.14.1.2

01 Nov 03:24
v1.14.1.2
c4a970f
Compare
Choose a tag to compare

scipy-stubs v1.14.1.2

Highlights

  • fully annotated scipy.stats (#135)
  • fully annotated scipy.fft (#142)

Fixes

  • scipy.integrate.quad rejected all callables if args was passed (#141)
  • scipy.stats.permutation_test rejected statistic with multiple parameters (#143)

Merged PR's

New Contributors

Full Changelog: v1.14.1.1...v1.14.1.2