NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #2188 most downloaded on PyPI
The official type stubs for SciPy
Last release 14 days ago
20 Sep 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 38 of 38 stable releases
2 versions withdrawn
withdrawn after publishing
2 years old
44 releases · first in 2024
One column per month.
🗑️ discourage using deprecated functions by returning object by @jorenham in #1355
This release targets SciPy 1.17.1 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.18.
scipy.spatial.transform module has been significantly improved:
Rotation and RigidTransform are now generic typesstats: made resampling results dimensionally aware (monte_carlo, bootstrap, permutation) by @Deshan-5 in #1250stats: improved mvdist return type by @jorenham in #1366optimize.root: input-dependent result dtype and shape-type by @jorenham in #1405spatial.transform: significantly improved Rotation by @jorenham in #1406spatial.transform: improved Slerp by @jorenham in #1407spatial.transform: improved RotationSpline by @jorenham in #1408spatial.transform: significantly improved RigidTransform by @jorenham in #1409sparse: accept scalar values in _spbase.setdiag (#1289) by @vector67 in #1290ndimage: fix output parameter type of interpolation functions by @MarDiehl in #1293sparse.linalg: fix LaplacianNd constructor by @jorenham in #1348sparse.linalg: fix lobpcg import issue by @jorenham in #1350optimize.root: missing OptimizeResult return attributes by @jorenham in #1399optimize: fix LbfgsInvHessProduct constructor by @jorenham in #1400spatial.distance type-tests by @jorenham in #1300spatial.ndarray increase type-test coverage by @jorenham in #1302ndimage: increase measurement function type-test coverage by @jorenham in #1303ndimage: increase interpolation function type-test coverage by @jorenham in #1305linalg: increase decomposition function type-test coverage by @jorenham in #1307linalg: increase QR function type-test coverage by @jorenham in #1309linalg: increase cholesky function type-test coverage by @jorenham in #1310linalg: increase LU function type-test coverage by @jorenham in #1313linalg: increase Schur function type-test coverage by @jorenham in #1315linalg: increase QZ function type-test coverage by @jorenham in #1317linalg: test norm by @jorenham in #1318linalg: increase "matfuncs" type-test coverage by @jorenham in #1319linalg: test ldl and polar by @jorenham in #1321linalg: increase solver function type-test coverage by @jorenham in #1323linalg: test cossin and orthogonal_procrustes by @jorenham in #1324linalg: test qr_{insert,update,delete} by @jorenham in #1326linalg: test expm_frechet and expm_cond by @jorenham in #1327linalg: test interpolative.* by @jorenham in #1328signal: increase CZT function type-test coverage by @jorenham in #1330signal: test LTI conversion functions by @jorenham in #1332signal: test ShortTimeFFT by @jorenham in #1333interpolate: test cubic interpolators by @jorenham in #1334interpolate: test N-d interpolators by @jorenham in #1335interpolate: test fitpack functions by @jorenham in #1336optimize: test root-finding functions by @jorenham in #1337optimize: test elementwise.* by @jorenham in #1338optimize: test the global optimization functions by @jorenham in #1339special: test the spherical Bessel functions by @jorenham in #1340special: test lambertw by @jorenham in #1341special: test the "basic" functions by @jorenham in #1342interpolate: test pade by @jorenham in #1343interpolate: test RBFInterpolator by @jorenham in #1344interpolate: test splines by @jorenham in #1345sparse.linalg: increase type-test coverage by @jorenham in #1346sparse.linalg: increase type-test coverage some more by @jorenham in #1347sparse.linalg: increase type-test coverage even more by @jorenham in #1349sparse.linalg: increase type-test coverage to 100% by @jorenham in #1352ndimage: increase type-test coverage to 100% by @jorenham in #1362linalg: increase type-test coverage to 100% by @jorenham in #1363stats: test hypothesis test functions by @jorenham in #1365stats: increase type-test coverage (_morestats) by @jorenham in #1367stats: increase type-test coverage (_stats_py) by @jorenham in #1370stats: increase type-test coverage (_binomtest) by @jorenham in #1371stats: increase type-test coverage (_bws_test) by @jorenham in #1372stats: increase type-test coverage (_survival) by @jorenham in #1373stats: increase type-test coverage (_multicomp) by @jorenham in #1374stats: increase type-test coverage (_page_trend_test) by @jorenham in #1375stats: increase type-test coverage (_mgc) by @jorenham in #1376stats: increase type-test coverage (_quantile) by @jorenham in #1377stats: increase type-test coverage (contingency) by @jorenham in #1378stats: increase type-test coverage (_fit) by @jorenham in #1379stats: increase type-test coverage (_sensitivity_analysis) by @jorenham in #1380optimize: increase type-test coverage (_optimize) by @jorenham in #1382optimize: increase type-test coverage (_nonlin) by @jorenham in #1383optimize: increase type-test coverage (_hessian_update_strategy) by @jorenham in #1384optimize: test root by @jorenham in #1386optimize: increase type-test coverage (_minpack_py) by @jorenham in #1385optimize: test fmin_cobyla by @jorenham in #1388optimize: test fmin_slsqp by @jorenham in #1389optimize: test direct by @jorenham in #1387optimize: test fmin_tnc by @jorenham in #1390optimize: test nnls by @jorenham in #1391optimize: test milp by @jorenham in #1392optimize: test linear_sum_assignment by @jorenham in #1393optimize: test lsq_linear by @jorenham in #1394optimize: increase type-test coverage (_constraints) by @jorenham in #1396optimize: test linprog_verbose_callback by @jorenham in #1397optimize: test LbfgsInvHessProduct by @jorenham in #1395optimize.linprog_verbose_callback: fix import in tests by @jorenham in #1401optimize: fix imports in tests for _zeros_py by @jorenham in #1402spatial.transform: increase type-test coverage by @jorenham in #1404ty to 0.0.20 by @jorenham in #1358object by @jorenham in #1355linalg.{blas,lapack} modules from type-test coverage by @jorenham in #1364Full Changelog: v1.17.1.0...v1.17.1.1
This release targets SciPy 1.17.1 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.18.
This release targets SciPy 1.17.1 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.18.
optimize: fix minimize_scalar bracket type by @alexfikl in #1257stats: Overload binned_statistic_2d and binned_statistic_dd so that expand_binnumbers=True returns the shape by @pavyamsiri in #1260scipy.stats: document the generic result classes by @Deshan-5 in #1281special: test log_softmax by @jorenham in #1241optype.test.assert_subtype by @jorenham in #1286@overrides by @jorenham in #1277implicit-abstract-class pyrefly rule by @jorenham in #1278# type: ignore comments by @jorenham in #1280uv_build to 0.10.4 by @jorenham in #1283Full Changelog: v1.17.0.2...v1.17.1.0
This release targets SciPy 1.17.0 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.16.
This release targets SciPy 1.17.0 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.16.
cluster.hierarchy: improve and test fcluster[data] by @jorenham in #1152cluster.hierarchy: improve and test leaders by @jorenham in #1153cluster.hierarchy: improve and test the linkage functions by @jorenham in #1154cluster.hierarchy: improve and test the statistics functions by @jorenham in #1155cluster.hierarchy: improve and test the plotting functions by @jorenham in #1156cluster.hierarchy: improve and test the tree functions by @jorenham in #1157cluster.hierarchy: improve and test the predicate functions by @jorenham in #1158signal: improve and test the LTI functions and methods by @jorenham in #1167special: improve and test the roots_ functions by @jorenham in #1173special: improve and test the -> orthopoly1d functions by @jorenham in #1174special._testutils stubs by @jorenham in #1175stats._continued_fraction stubs by @jorenham in #1176io: improve and test the Matlab functions by @jorenham in #1178io: improve and test readsav by @jorenham in #1179io: improve and test the Matrix Market functions by @jorenham in #1180io: improve and test FortranFile by @jorenham in #1181io: improve and test the netcdf classes by @jorenham in #1182io: improve and test the Harwell-Boeing functions by @jorenham in #1184io.arff: improve and test loadarff by @jorenham in #1186io.wavfile: improve and test read and write by @jorenham in #1188stats: improve and test variation by @jorenham in #1190stats: improve and test CensoredData by @jorenham in #1191stats: improved support for CensoredData by @jorenham in #1192stats: improve and test gaussian_kde by @jorenham in #1193stats: improve and test the Box-Cox functions by @jorenham in #1194stats: improve and test boxcox_llf by @jorenham in #1195stats: improve and test the Yeo-Johnson functions by @jorenham in #1197stats: improve and test lmoment by @jorenham in #1200linalg: improve and test the special matrix function by @jorenham in #1201stats: improve and test spearmanr by @jorenham in #1207stats: improve and test linregress by @jorenham in #1208stats: improve and test ttest_{ind,rel} by @jorenham in #1209stats: improve and test rankdata by @jorenham in #1211stats: improve and test kendalltau by @jorenham in #1212stats: improve and test moment by @jorenham in #1214stats: improve and test skew and kurtosis by @jorenham in #1215stats: improve and test mannwhitneyu by @jorenham in #1216signal: improve and test the lfilter functions by @jorenham in #1217signal: improve and test the convolution/correlation functions by @jorenham in #1220signal: improve and test sosfilt_zi, order_filter, medfilt[2d] by @jorenham in #1221stats: improve and test upfirdn by @jorenham in #1225signal.windows: improve and test the window functions by @jorenham in #1230signal.windows: improve and test AAA and FloaterHormannInterpolator by @jorenham in #1232interpolate: slighly better array api support in the private api by @jorenham in #1233cluster.hierarchy: improve and test fcluster[data] by @jorenham in #1152cluster.hierarchy: improve and test leaders by @jorenham in #1153cluster.hierarchy: improve and test the linkage functions by @jorenham in #1154cluster.hierarchy: improve and test the statistics functions by @jorenham in #1155cluster.hierarchy: improve and test the plotting functions by @jorenham in #1156cluster.hierarchy: improve and test the tree functions by @jorenham in #1157cluster.hierarchy: improve and test the predicate functions by @jorenham in #1158signal: improve and test the LTI functions and methods by @jorenham in #1167special: improve and test the roots_ functions by @jorenham in #1173special: improve and test the -> orthopoly1d functions by @jorenham in #1174special general ufunc tests by @jorenham in #1138io: improve and test the Matlab functions by @jorenham in #1178io: improve and test readsav by @jorenham in #1179io: improve and test the Matrix Market functions by @jorenham in #1180io: improve and test FortranFile by @jorenham in #1181io: improve and test the netcdf classes by @jorenham in #1182io.matlab module from type-test coverage by @jorenham in #1183io: improve and test the Harwell-Boeing functions by @jorenham in #1184io.arff: improve and test loadarff by @jorenham in #1186io.wavfile: improve and test read and write by @jorenham in #1188stats: improve and test variation by @jorenham in #1190stats: improve and test CensoredData by @jorenham in #1191stats: improve and test gaussian_kde by @jorenham in #1193stats: improve and test the Box-Cox functions by @jorenham in #1194stats: improve and test boxcox_llf by @jorenham in #1195stats: improve and test the Yeo-Johnson functions by @jorenham in #1197stats: test the new distribution infra functions by @jorenham in #1198stats: improve and test lmoment by @jorenham in #1200linalg: improve and test the special matrix function by @jorenham in #1201stats: improve and test spearmanr by @jorenham in #1207stats: improve and test linregress by @jorenham in #1208stats: improve and test ttest_{ind,rel} by @jorenham in #1209stats: improve and test rankdata by @jorenham in #1211stats: improve and test kendalltau by @jorenham in #1212stats: test gzscore by @jorenham in #1213stats: improve and test moment by @jorenham in #1214stats: improve and test skew and kurtosis by @jorenham in #1215stats: improve and test mannwhitneyu by @jorenham in #1216signal: improve and test the lfilter functions by @jorenham in #1217signal: test [sos]filtfilt by @jorenham in #1218signal: test savgol_filter and savgol_coeffs by @jorenham in #1219signal: improve and test the convolution/correlation functions by @jorenham in #1220signal: improve and test sosfilt_zi, order_filter, medfilt[2d] by @jorenham in #1221signal: test the FIR filter design functions by @jorenham in #1222signal: test the spectral analysis functions by @jorenham in #1223signal: test hilbert[2] and wiener by @jorenham in #1224stats: improve and test upfirdn by @jorenham in #1225signal: test peak finding functions by @jorenham in #1227signal: test max_len_seq by @jorenham in #1228signal: test filter design functions by @jorenham in #1229signal.windows: improve and test the window functions by @jorenham in #1230signal.windows: improve and test AAA and FloaterHormannInterpolator by @jorenham in #1232ty to 0.0.12 by @jorenham in #1139stats: add some # undocumented comments by @jorenham in #1150special: add some # undocumented comments by @jorenham in #1163special: add some more # undocumented comments by @jorenham in #1170special._special_ufuncs: reexport ufuncs from special._ufuncs by @jorenham in #1177pandas-stubs in mypy_primer by @jorenham in #1202linalg subpackages from type-coverage by @jorenham in #1204spatial.distance subpackage in type-coverage by @jorenham in #1206Note truncated.
exclude bare packages and deprecated modules from the type-coverage by @jorenham in https://github.com/scipy/scipy-stubs/pull/1110
This release targets SciPy 1.17.0 and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.16.
<!-- Release notes generated using configuration in .github/release.yml at v1.17.0.1 -->
signal: improved spectral analysis functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1082signal: improved filter design functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1084signal: improved decimate, detrend, unique_roots, and vectorstrength by @jorenham in https://github.com/scipy/scipy-stubs/pull/1086signal: improve chirp by @jorenham in https://github.com/scipy/scipy-stubs/pull/1087signal: improve upfirdn by @jorenham in https://github.com/scipy/scipy-stubs/pull/1088signal: improve cont2discrete by @jorenham in https://github.com/scipy/scipy-stubs/pull/1089signal: improve lsim by @jorenham in https://github.com/scipy/scipy-stubs/pull/1090signal: improved savgol_filter shape-typing and dtypes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1092linalg.lstsq: improved overloading by @jorenham in https://github.com/scipy/scipy-stubs/pull/1113integrate: use Any as default generic type parameter for ODE classes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1114integrate.trapezoid: improved overloading by @jorenham in https://github.com/scipy/scipy-stubs/pull/1119integrate.simpson: improved overloading by @jorenham in https://github.com/scipy/scipy-stubs/pull/1120integrate.romb: improved overloading by @jorenham in https://github.com/scipy/scipy-stubs/pull/1121integrate.cumulative_{trapezoid,simpson}: shape-typing and concrete dtypes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1126integrate.quad_vec: shape-typing and conrete dtypes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1128stats.rv_continuous.rvs: batching support and improved shape-typing by @jorenham in https://github.com/scipy/scipy-stubs/pull/1133signal: fixed and simplified FIR filter design functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1081fft: accept complex sequences in the dct/dst functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1108integrate: fix ode.set_integrator accepted method values by @jorenham in https://github.com/scipy/scipy-stubs/pull/1115integrate.qmc_quad: accept scalar input for a and b by @jorenham in https://github.com/scipy/scipy-stubs/pull/1124integrate.fixed_quad: fix return type and accept more function types by @jorenham in https://github.com/scipy/scipy-stubs/pull/1125stats.rv_continuous.rvs: batching support and improved shape-typing by @jorenham in https://github.com/scipy/scipy-stubs/pull/1133python-hvac to the list of downstream projects by @jorenham in https://github.com/scipy/scipy-stubs/pull/1079fft: add tests for the remaining "basic" functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1105fft: add tests for [r]fftfreq, [i]fftshift, and {prev,next}_fast_len by @jorenham in https://github.com/scipy/scipy-stubs/pull/1107fft: add tests for the dct/dst functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1109linalg: clean up the "basic" tests by @jorenham in https://github.com/scipy/scipy-stubs/pull/1112integrate: test complex_ode by @jorenham in https://github.com/scipy/scipy-stubs/pull/1117integrate: test solve_bvp by @jorenham in https://github.com/scipy/scipy-stubs/pull/1118integrate: test newton_cotes and lebedev_rule by @jorenham in https://github.com/scipy/scipy-stubs/pull/1122integrate: test cubature by @jorenham in https://github.com/scipy/scipy-stubs/pull/1127integrate: test dblquad, tplquad, and nquad by @jorenham in https://github.com/scipy/scipy-stubs/pull/1129integrate: test the IVP classes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1130stats: test the univariate distributions by @jorenham in https://github.com/scipy/scipy-stubs/pull/1134uv and dprint dev dependencies by @jorenham in https://github.com/scipy/scipy-stubs/pull/1085mypy_primer improve comment formatting by @jorenham in https://github.com/scipy/scipy-stubs/pull/1091Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.17.0.0...v1.17.0.1
odr: deprecate scipy.odr by @jorenham in https://github.com/scipy/scipy-stubs/pull/1040
This is the first scipy-stubs release that supports SciPy 1.17 (>=1.17.0rc2, <1.18) and supports Python 3.11-3.14, NumPy 1.26-2.4, and optype 0.14-0.16. If you encounter any regressions or other issues, please report them at https://github.com/scipy/scipy-stubs/issues.
<!-- Release notes generated using configuration in .github/release.yml at v1.17.0.0 -->
_lib: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1034integrate: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1035interpolate: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1037linalg: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1039odr: deprecate scipy.odr by @jorenham in https://github.com/scipy/scipy-stubs/pull/1040optimize: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1041signal: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1043sparse.linalg: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1044sparse: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1047spatial.transform: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1048spatial: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1049special: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1050stats: SciPy 1.17 api changes by @jorenham in https://github.com/scipy/scipy-stubs/pull/1051sparse: add missing csr_* constructor signatures by @jorenham in https://github.com/scipy/scipy-stubs/pull/1061pyrefly and ty by @jorenham in https://github.com/scipy/scipy-stubs/pull/1032.mypyignore-todo allowlist entries by @jorenham in https://github.com/scipy/scipy-stubs/pull/1038sparse: several simplifications in _construct by @jorenham in https://github.com/scipy/scipy-stubs/pull/1045.mypyignore.todo by @jorenham in https://github.com/scipy/scipy-stubs/pull/1055ty to 0.0.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/1059kglab to the list of downstream projects by @jorenham in https://github.com/scipy/scipy-stubs/pull/1076Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.3.3...v1.17.0.0
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.4, and optype 0.14-0.15.
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.4, and optype 0.14-0.15.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.3.3 -->
_lib._util: covariant (immutable) _RichResult by @jorenham in https://github.com/scipy/scipy-stubs/pull/1023:
_RichResult is now no longer a subtype of dict, intentionally deviating from the runtime situation. Type-checkers will therefore no longer allow setting the keys or arbitrary attributes of these result class instances. Specifically, this affects the result classes of the following functions:
scipy.differentiate functionsscipy.integrate.solve_ivpscipy.integrate.tanhsinhscipy.integrate.nsumscipy.optimizeintegrate: fix and improve tanhsinh and nsum by @jorenham in https://github.com/scipy/scipy-stubs/pull/1015ty support by @jorenham in https://github.com/scipy/scipy-stubs/pull/1020integrate: fix and improve tanhsinh and nsum by @jorenham in https://github.com/scipy/scipy-stubs/pull/1015differentiate: support for preserve_shape=True in derivative by @jorenham in https://github.com/scipy/scipy-stubs/pull/1025TypeVar upper bounds by @jorenham in https://github.com/scipy/scipy-stubs/pull/1016ruff to 0.14.7 by @jorenham in https://github.com/scipy/scipy-stubs/pull/1018uv run ty over uvx ty by @jorenham in https://github.com/scipy/scipy-stubs/pull/1022tests by default when running ty check by @jorenham in https://github.com/scipy/scipy-stubs/pull/1026ty to 0.0.1a32; pyrefly to 0.44.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/1027optype upper bound to <0.16.0, bump pyrefly to 0.45.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/1028Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.3.2...v1.16.3.3
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
tanhsinh can contain arrays by @JaRoSchm in https://github.com/scipy/scipy-stubs/issues/1005<!-- Release notes generated using configuration in .github/release.yml at v1.16.3.2 -->
integrate: tanhsinh and nsum fixes for vectorized input by @jorenham in https://github.com/scipy/scipy-stubs/pull/1009graphix in the list of downstream projects by @jorenham in https://github.com/scipy/scipy-stubs/pull/1012uv_build version to 0.9.13 by @jorenham in https://github.com/scipy/scipy-stubs/pull/1010Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.3.1...v1.16.3.2
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
This release targets SciPy 1.16.3 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
stats.unitary_group.rvs is typed as returning ndarray[float64] but returns ndarray[complex128] by @thierry-martinez in https://github.com/scipy/scipy-stubs/issues/987DisjointSet.__getitem__ has incorrect type by @lispandfound in https://github.com/scipy/scipy-stubs/issues/991<!-- Release notes generated using configuration in .github/release.yml at v1.16.3.1 -->
stats: improved shape-typing in the multivariate .rvs() methods by @jorenham in https://github.com/scipy/scipy-stubs/pull/994odr: various improvements by @jorenham in https://github.com/scipy/scipy-stubs/pull/998scipy.optimize: fix typo in extrapolation mode zeros by @mbillingsley5 in https://github.com/scipy/scipy-stubs/pull/970stats.unitary_group.rvs: fix return dtype by @jorenham in https://github.com/scipy/scipy-stubs/pull/993cluster.hierarchy: use generic return type for DisjointSet.__getitem__ by @lispandfound in https://github.com/scipy/scipy-stubs/pull/992stats: fixed shape-typing in the multivariate .rvs() methods by @jorenham in https://github.com/scipy/scipy-stubs/pull/994odr: remove Model.covx attribute and various improvements by @jorenham in https://github.com/scipy/scipy-stubs/pull/998Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.3.0...v1.16.3.1
This is the first scipy-stubs release that officially supports SciPy 1.16.3.
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.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.3.0 -->
scipy to 1.16.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/962optimize.minimize_scalar: Allow bounds without args by @wangenau in https://github.com/scipy/scipy-stubs/pull/950optimize.least_squares: Allow scalar floating point return type in residual function by @haarisr in https://github.com/scipy/scipy-stubs/pull/960typed-dict-key-error to bad-typed-dict-key by @rchen152 in https://github.com/scipy/scipy-stubs/pull/956Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.2.4...v1.16.3.0
This release targets SciPy 1.16.2 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
This release targets SciPy 1.16.2 and supports Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.14.
optimize.least_squares resolves as a module type instead of a function type (mypy-only) by @hypzz in https://github.com/scipy/scipy-stubs/issues/939TypedDict for properties of scipy.signal.find_peaks by @Stephen-Armstrong in https://github.com/scipy/scipy-stubs/issues/944<!-- Release notes generated using configuration in .github/release.yml at v1.16.2.4 -->
signal.find_peaks: specialized return types for all 32 input combinations by @jorenham in https://github.com/scipy/scipy-stubs/pull/945optimize.least_squares: workaround for an import resolution bug in mypy by @jorenham in https://github.com/scipy/scipy-stubs/pull/940pyrefly to 0.36.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/932pyrefly to 0.37.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/937ruff to 0.14.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/941basedpyright to 1.31.7 by @jorenham in https://github.com/scipy/scipy-stubs/pull/935Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.2.3...v1.16.2.4
> 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 als
[!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.
integrate: several OdeSolver fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/880integrate: several BDF fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/882optimize: fix incorrect OptimizeResult import by @jorenham in https://github.com/scipy/scipy-stubs/pull/883__slots__ by @jorenham in https://github.com/scipy/scipy-stubs/pull/908io: Fix wrong return type on scipy.io.wavfile by @mochaaP in https://github.com/scipy/scipy-stubs/pull/916optype upper bound by @jorenham in https://github.com/scipy/scipy-stubs/pull/925optype upper bound (again) by @jorenham in https://github.com/scipy/scipy-stubs/pull/927colour-science/colour-checker-detection to the list of dependents by @jorenham in https://github.com/scipy/scipy-stubs/pull/886integrate.OdeSolver and integrate.DenseOutput types by @jorenham in https://github.com/scipy/scipy-stubs/pull/887mypy to 1.18.1 and --ignore-disjoint-bases by @jorenham in https://github.com/scipy/scipy-stubs/pull/877basedpyright to 1.31.6 and sp-repo-review to 2025.10.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/903pyrefly to 0.36.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/920ruff to 0.14.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/922uv_build to 0.8.24 by @jorenham in https://github.com/scipy/scipy-stubs/pull/923uv_build to 0.9.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/928astral-sh/setup-uv to v7.0.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/929--fixed-format-cache crashes mypy by @jorenham in https://github.com/scipy/scipy-stubs/pull/890Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.2.0...v1.16.2.3
> Yanked: Incorrect upper bound on the optype version (again). Use scipy-stubs 1.16.2.3 instead.
[!warning] Yanked: Incorrect upper bound on the optype version (again). Use scipy-stubs 1.16.2.3 instead.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.2.2 -->
See the 1.16.2.1 release for additional release notes.
optype upper bound by @jorenham in https://github.com/scipy/scipy-stubs/pull/925Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.2.1...v1.16.2.2
> Yanked: Missing upper bound on the optype version. Use scipy-stubs 1.16.2.3 instead.
[!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.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.2.1 -->
integrate: several OdeSolver fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/880integrate: several BDF fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/882optimize: fix incorrect OptimizeResult import by @jorenham in https://github.com/scipy/scipy-stubs/pull/883__slots__ by @jorenham in https://github.com/scipy/scipy-stubs/pull/908io: Fix wrong return type on scipy.io.wavfile by @mochaaP in https://github.com/scipy/scipy-stubs/pull/916colour-science/colour-checker-detection to the list of dependents by @jorenham in https://github.com/scipy/scipy-stubs/pull/886integrate.OdeSolver and integrate.DenseOutput types by @jorenham in https://github.com/scipy/scipy-stubs/pull/887mypy to 1.18.1 and --ignore-disjoint-bases by @jorenham in https://github.com/scipy/scipy-stubs/pull/877basedpyright to 1.31.6 and sp-repo-review to 2025.10.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/903pyrefly to 0.36.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/920ruff to 0.14.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/922uv_build to 0.8.24 by @jorenham in https://github.com/scipy/scipy-stubs/pull/923--fixed-format-cache crashes mypy by @jorenham in https://github.com/scipy/scipy-stubs/pull/890Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.2.0...v1.16.2.1
This is the first scipy-stubs release that officially supports SciPy 1.16.2.
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.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.2.0 -->
sparse.linalg: fix and improve ARPACK eigs and eigsh return dtypes by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/831stats.sampling: annotate __cinit__ as __new__, not __init__ by @jorenham in https://github.com/scipy/scipy-stubs/pull/847optimize: also accept None for certain curve_fit kwargs by @jorenham in https://github.com/scipy/scipy-stubs/pull/869signal: improve resample by @jorenham in https://github.com/scipy/scipy-stubs/pull/828signal: improve resample_poly by @jorenham in https://github.com/scipy/scipy-stubs/pull/829sparse.linalg: fix and improve ARPACK eigs and eigsh return dtypes by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/831optimize: support plural bounds in linprog by @Rupt in https://github.com/scipy/scipy-stubs/pull/860signal: annotate the private functions in _signaltools by @jorenham in https://github.com/scipy/scipy-stubs/pull/867optimize: have linprog return a specialized OptimizeResult by @jorenham in https://github.com/scipy/scipy-stubs/pull/868signal: update ShortTimeFFT with the new private attributes by @jorenham in https://github.com/scipy/scipy-stubs/pull/875scipy.version literals by @jorenham in https://github.com/scipy/scipy-stubs/pull/872uv and ruff by @jorenham in https://github.com/scipy/scipy-stubs/pull/826scipy to 1.16.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/8711.18.0+dev errors by @jorenham in https://github.com/scipy/scipy-stubs/pull/845sparse: extract common type alias for 2d sparse arrays by @jorenham in https://github.com/scipy/scipy-stubs/pull/846scipy by @jorenham in https://github.com/scipy/scipy-stubs/pull/873Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.1.1...v1.16.2.0
This release targets SciPy 1.16.1 and requires Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.13.4.
This release targets SciPy 1.16.1 and requires Python 3.11-3.14, NumPy 1.25-2.3, and optype 0.13.4.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.1.1 -->
sparse: improved block-related sparse construction functions by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/775sparse: improve the lil_matrix and lil_array constructors by @jorenham in https://github.com/scipy/scipy-stubs/pull/818stats: improve mode by @jorenham in https://github.com/scipy/scipy-stubs/pull/812stats: improve pearsonr by @jorenham in https://github.com/scipy/scipy-stubs/pull/814stats: improve sem by @jorenham in https://github.com/scipy/scipy-stubs/pull/815stats: improve zscore and gzscore by @jorenham in https://github.com/scipy/scipy-stubs/pull/816sparse: fix the lil_matrix and lil_array constructors by @jorenham in https://github.com/scipy/scipy-stubs/pull/818stats: fix mode return type by @jorenham in https://github.com/scipy/scipy-stubs/pull/809ruff to 0.12.9 and basedpyright to 1.31.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/813optype to 0.13.4 by @jorenham in https://github.com/scipy/scipy-stubs/pull/821uv_build by @jorenham in https://github.com/scipy/scipy-stubs/pull/821stats: consistent typar naming and remove redundant float | defaults by @jorenham in https://github.com/scipy/scipy-stubs/pull/807Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.1.0...v1.16.1.1
🗑️ special.comb: remove expired @deprecated non-integer exact=True overloads by @jorenham in https://github.com/scipy/scipy-stubs/pull/793
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.
linalg: stub more of the internal scipy machinery by @jorenham in https://github.com/scipy/scipy-stubs/pull/710linalg: support sparse arrays in clarkson_woodruff_transform by @jorenham in https://github.com/scipy/scipy-stubs/pull/711scipy._cyutility by @jorenham in https://github.com/scipy/scipy-stubs/pull/712_lib: stub _ccallback_c and _array_api[_compat_vendor] by @jorenham in https://github.com/scipy/scipy-stubs/pull/713cluster: stub internal cython submodules by @jorenham in https://github.com/scipy/scipy-stubs/pull/714integrate: stub integrate._rules.* (private api) by @jorenham in https://github.com/scipy/scipy-stubs/pull/715integrate: stub the remaining private C-extension modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/716interpolate: stub the remaining private C- and cython modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/717io.matlab: stub private cython modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/718sparse: added stubs for all formats in kron and kronsum by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/719ndimage: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/720optimize: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/722signal: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/723sparse: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/724spatial: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/725special: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/726stats: stub the remaining private modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/727stats: improved [differential_]entropy annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/738stats: improved Covariance generic type parameter inference by @jorenham in https://github.com/scipy/scipy-stubs/pull/739ndimage: improved fourier_* annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/740linalg: improved basic solve* annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/741linalg: improved inv annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/743linalg: improved det annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/744linalg: improved eigh return type inference for float64 by @jorenham in https://github.com/scipy/scipy-stubs/pull/755sparse: overhauled stubs for diags_array, eye_array, and their matrix equivalents by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/733integrate: improve the odeint signature by @jorenham in https://github.com/scipy/scipy-stubs/pull/763integrate: improved solve_ivp annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/765signal: improved convolution and correlation functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/767signal: improved filter function annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/768hstack and vstack overloads for different sparse formats by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/774sparse.linalg: allow passing arrays to expm_multiply by @jorenham in https://github.com/scipy/scipy-stubs/pull/708sparse.linalg: fix several LinearOperator issues by @jorenham in https://github.com/scipy/scipy-stubs/pull/709sparse: improved init stubs of sparse arrays with shape as positional argument. by @JulVandenBroeck in https://github.com/scipy/scipy-stubs/pull/704sparse: csc array/matrix constructor fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/753numpy<2.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/779fftpack: fix stubtest error on numpy<2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/786numpy==2.2.* by @jorenham in https://github.com/scipy/scipy-stubs/pull/787numpy==2.1.* by @jorenham in https://github.com/scipy/scipy-stubs/pull/788numpy<2.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/789interpolate: Fix incorrect return type for make_lsq_spline by @elael in https://github.com/scipy/scipy-stubs/pull/776optimize: fix compatibility issues with ABCPolyBase on numpy==2.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/780np.[c]longdouble on numpy<2.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/781special.comb: remove expired @deprecated non-integer exact=True overloads by @jorenham in https://github.com/scipy/scipy-stubs/pull/793scanpy as dependent project by @jorenham in https://github.com/scipy/scipy-stubs/pull/747CONTRIBUTING.md fixes by @jorenham in https://github.com/scipy/scipy-stubs/pull/760ruff to 0.12.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/707mypy to 1.17.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/746optype to 0.12.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/750basedpyright to 1.31.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/751ruff to 0.12.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/752ruff to 0.12.4 by @jorenham in https://github.com/scipy/scipy-stubs/pull/757setup-uv to v6.4.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/758optype to 0.12.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/761ruff to 0.12.7 by @jorenham in https://github.com/scipy/scipy-stubs/pull/790mypy to 1.17.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/794scipts/*.py by @jorenham in https://github.com/scipy/scipy-stubs/pull/721optype.numpy.compat for abstract scalar types by @jorenham in https://github.com/scipy/scipy-stubs/pull/730*._typing modules by @jorenham in https://github.com/scipy/scipy-stubs/pull/731onp.AnyFloat64DType | None by @jorenham in https://github.com/scipy/scipy-stubs/pull/735linalg: simplified _decomp_svd type aliases by @jorenham in https://github.com/scipy/scipy-stubs/pull/749overload-overlap mypy errors on numpy>=2.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/782reportOverlappingOverload pyright errors on numpy<2.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/783special: work around false positive overload-overlap mypy errors on numpy<2.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/785license-files by @jorenham in https://github.com/scipy/scipy-stubs/pull/795uv_build by @jorenham in https://github.com/scipy/scipy-stubs/pull/796Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.0.2...v1.16.1.0
<!-- Release notes generated using configuration in .github/release.yml at v1.16.0.2 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.16.0.2 -->
special: improved logsumexp and [log_]softmax by @jorenham in https://github.com/scipy/scipy-stubs/pull/699linalg: improved svd annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/700stats: private _continuous_distns functions should accept scalars by @jorenham in https://github.com/scipy/scipy-stubs/pull/694special.logsumexp: add missing axis parameter defaults by @jorenham in https://github.com/scipy/scipy-stubs/pull/698scipy generics support by @jorenham in https://github.com/scipy/scipy-stubs/pull/695Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.0.1...v1.16.0.2
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
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.
<!-- Release notes generated using configuration in .github/release.yml at v1.16.0.1 -->
optimize.fmin_l_bfgs_b by @jorenham in https://github.com/scipy/scipy-stubs/pull/643stats: Annotate the private functions and consts in _continuous_distns by @jorenham in https://github.com/scipy/scipy-stubs/pull/650cluster.vq: improved dtype annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/651interpolate: Generic Krogh and barycentric interpolator types by @jorenham in https://github.com/scipy/scipy-stubs/pull/667optimize: Generic Bounds type by @jorenham in https://github.com/scipy/scipy-stubs/pull/675sparse.linalg: Improved linear solver function annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/678fft: improved *fft, *fft2 and *fftn annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/681fft: improved [i]fftshift annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/682fft: sync (private) signatures of _realtransforms and _realtransforms_backend by @jorenham in https://github.com/scipy/scipy-stubs/pull/684stats.qmc: Add missing seed constructor parameters by @jorenham in https://github.com/scipy/scipy-stubs/pull/647optimize: accept tuple functions in fmin_l_bfgs_b by @jorenham in https://github.com/scipy/scipy-stubs/pull/649cluster.vq: Add missing seed parameter to kmeans and kmeans2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/652interpolate: Add missing seed kwarg to the BarycentricInterpolator constructor by @jorenham in https://github.com/scipy/scipy-stubs/pull/654linalg: Add missing seed kwarg to clarkson_woodruff_transform by @jorenham in https://github.com/scipy/scipy-stubs/pull/655optimize: Add missing seed kwargs to the global optimize functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/656sparse: Add missing random_state kwarg to random_array and rand[om] by @jorenham in https://github.com/scipy/scipy-stubs/pull/657sparse.linalg: Add missing random_state kwarg to svds by @jorenham in https://github.com/scipy/scipy-stubs/pull/658spatial.distance: Add missing seed kwarg to directed_hausdorff by @jorenham in https://github.com/scipy/scipy-stubs/pull/659spatial.transform: Add missing random_state kwarg to Rotation.random by @jorenham in https://github.com/scipy/scipy-stubs/pull/660stats: Add missing random_state kwargs by @jorenham in https://github.com/scipy/scipy-stubs/pull/661sparse: fix sparse array/matrix indexing by @jorenham in https://github.com/scipy/scipy-stubs/pull/664signal: simplify get_window input type by @jorenham in https://github.com/scipy/scipy-stubs/pull/665sparse: Transposition duality of CSR and CSC arrays by @jorenham in https://github.com/scipy/scipy-stubs/pull/669sparse.linalg: Fix factorize return type annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/679interpolate: consistent RBFInterpolator generic type parameter ordering by @jorenham in https://github.com/scipy/scipy-stubs/pull/685scipy>=1.16.0<1.17 by @jorenham in https://github.com/scipy/scipy-stubs/pull/642ruff to 0.12.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/680basedpyright to 1.29.5 by @jorenham in https://github.com/scipy/scipy-stubs/pull/691io: loadmat return dict with gradual value types by @jorenham in https://github.com/scipy/scipy-stubs/pull/6761.16.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/683dprint formatter for markdown, json, toml and yaml by @jorenham in https://github.com/scipy/scipy-stubs/pull/688Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.16.0.0...v1.16.0.1
signal: dedupe the @deprecated public submodule function definitions by @jorenham in https://github.com/scipy/scipy-stubs/pull/551
<!-- Release notes generated using configuration in .github/release.yml at v1.16.0.0 -->
This is the first scipy-stubs release that supports SciPy 1.16. In these last 6 weeks of hard work, we've also made many improvements to the accuracy, correctness, and testing coverage 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.
1.16.0rc2) (release notes)2.3.0) (release notes)scipy.linalg: Low-level BLAS and LAPACK function annotationsscipy.sparse: Many sparse array and matrix improvements, including preliminary shape-typing supportSee below for the complete list of PR's that are included in this scipy-stubs release.
_lib by @jorenham in https://github.com/scipy/scipy-stubs/pull/525cluster.vq.whiten by @jorenham in https://github.com/scipy/scipy-stubs/pull/526interpolate.dfitpack by @jorenham in https://github.com/scipy/scipy-stubs/pull/527interpolate.RectBivariateSpline by @jorenham in https://github.com/scipy/scipy-stubs/pull/528interpolate.make_smoothing_spline by @jorenham in https://github.com/scipy/scipy-stubs/pull/529io.matlab by @jorenham in https://github.com/scipy/scipy-stubs/pull/530linalg.sqrtm by @jorenham in https://github.com/scipy/scipy-stubs/pull/531ndimage.vectorized_filter by @jorenham in https://github.com/scipy/scipy-stubs/pull/537scipy.linalg by @jorenham in https://github.com/scipy/scipy-stubs/pull/535optimize._differentiable_functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/538optimize.least_squares by @jorenham in https://github.com/scipy/scipy-stubs/pull/539optimize._numdiff by @jorenham in https://github.com/scipy/scipy-stubs/pull/540optimize._trustregion_constr by @jorenham in https://github.com/scipy/scipy-stubs/pull/541optimize.nnls by @jorenham in https://github.com/scipy/scipy-stubs/pull/542optimize.slsqp by @jorenham in https://github.com/scipy/scipy-stubs/pull/544signal._short_time_fft by @jorenham in https://github.com/scipy/scipy-stubs/pull/546signal.firwin_2d by @jorenham in https://github.com/scipy/scipy-stubs/pull/548signal.__all__ by @jorenham in https://github.com/scipy/scipy-stubs/pull/549signal.windows by @jorenham in https://github.com/scipy/scipy-stubs/pull/550signal: dedupe the @deprecated public submodule function definitions by @jorenham in https://github.com/scipy/scipy-stubs/pull/551linalg.{logm, signm, sqrtm} by @jorenham in https://github.com/scipy/scipy-stubs/pull/553_lib._sparse by @jorenham in https://github.com/scipy/scipy-stubs/pull/555sparse._base by @jorenham in https://github.com/scipy/scipy-stubs/pull/556sparse by @jorenham in https://github.com/scipy/scipy-stubs/pull/557sparse.csgraph._shortest_path by @jorenham in https://github.com/scipy/scipy-stubs/pull/558sparse._sputils by @jorenham in https://github.com/scipy/scipy-stubs/pull/559sparse._dok by @jorenham in https://github.com/scipy/scipy-stubs/pull/560spatial.transform._rotation by @jorenham in https://github.com/scipy/scipy-stubs/pull/561spatial.transform.RigidTransform by @jorenham in https://github.com/scipy/scipy-stubs/pull/562special._support_alternative_backends by @jorenham in https://github.com/scipy/scipy-stubs/pull/563stats.quantile by @jorenham in https://github.com/scipy/scipy-stubs/pull/564stats.make_distribution by @jorenham in https://github.com/scipy/scipy-stubs/pull/565stats._distribution_infrastructure by @jorenham in https://github.com/scipy/scipy-stubs/pull/566stats.Binomial by @jorenham in https://github.com/scipy/scipy-stubs/pull/567stats._mvn by @jorenham in https://github.com/scipy/scipy-stubs/pull/569stats.tukey_hsd by @jorenham in https://github.com/scipy/scipy-stubs/pull/570stats.f_oneway by @jorenham in https://github.com/scipy/scipy-stubs/pull/573stats.trapz by @jorenham in https://github.com/scipy/scipy-stubs/pull/574stats.multivariate_normal.[log]cdf by @jorenham in https://github.com/scipy/scipy-stubs/pull/575stats.gaussian_kde.integrate_box by @jorenham in https://github.com/scipy/scipy-stubs/pull/576stats.boxcox_llf by @jorenham in https://github.com/scipy/scipy-stubs/pull/577stats.{siegel,theil}slopes by @jorenham in https://github.com/scipy/scipy-stubs/pull/580stats.gstd by @jorenham in https://github.com/scipy/scipy-stubs/pull/581stats.power_divergence and stats.chisquare by @jorenham in https://github.com/scipy/scipy-stubs/pull/582stats.linregress by @jorenham in https://github.com/scipy/scipy-stubs/pull/583stats.linregress by @jorenham in https://github.com/scipy/scipy-stubs/pull/584stats.pointbiserialr by @jorenham in https://github.com/scipy/scipy-stubs/pull/585stats.{kendall,weighted}tau by @jorenham in https://github.com/scipy/scipy-stubs/pull/586version by @jorenham in https://github.com/scipy/scipy-stubs/pull/587signal: generic ShortTimeFFT type-param and improved annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/547linalg: improved _matfuncs return dtypes by @jorenham in https://github.com/scipy/scipy-stubs/pull/554stats: improved hypothesis test function return type annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/571linalg: low-level BLAS function annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/594linalg: low-level LAPACK function annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/595optimize: stub _slsqplib cpython extension module by @jorenham in https://github.com/scipy/scipy-stubs/pull/596linalg: stub _decomp_interpolative cpython extension module by @jorenham in https://github.com/scipy/scipy-stubs/pull/597stats: stub the _rcont subpackage by @jorenham in https://github.com/scipy/scipy-stubs/pull/598sparse: improved annotations and code cleanup by @jorenham in https://github.com/scipy/scipy-stubs/pull/602sparse: type testing & sparse matrix and array improvements by @jorenham in https://github.com/scipy/scipy-stubs/pull/605constants: type-tests & improved annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/610sparse: constructor function type-tests by @jorenham in https://github.com/scipy/scipy-stubs/pull/619sparse: improved integer matrix/array method annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/624sparse: fix and improve get_index_type return type by @jorenham in https://github.com/scipy/scipy-stubs/pull/625sparse: simplified gradual load_npz return type by @jorenham in https://github.com/scipy/scipy-stubs/pull/626sparse: Improved shape-typing support for CSR and DOK arrays by @jorenham in https://github.com/scipy/scipy-stubs/pull/634fft: improved [i]fht() annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/640fft: improved discrete sine- and cosine transform return types by @jorenham in https://github.com/scipy/scipy-stubs/pull/641signal: accept numbers as args to width and plateau_size for find_peaks() by @jorenham in https://github.com/scipy/scipy-stubs/pull/519numpy<2.2 compatability with np.bool_ by @jorenham in https://github.com/scipy/scipy-stubs/pull/579sparse: covariant sparse matrix/array types by @jorenham in https://github.com/scipy/scipy-stubs/pull/623sparse: fix and improve get_index_type return type by @jorenham in https://github.com/scipy/scipy-stubs/pull/625sparse: distinguish between different values for argument which in eigs and eigsh by @lcwllmr in https://github.com/scipy/scipy-stubs/pull/633optimize: fix false rejection of identity functions in minimize by @jorenham in https://github.com/scipy/scipy-stubs/pull/638fft: fix input type annotations of the low-level backend functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/639sparse: type testing & sparse matrix and array improvements by @jorenham in https://github.com/scipy/scipy-stubs/pull/605constants: type-tests & improved annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/610misc: add type-tests by @jorenham in https://github.com/scipy/scipy-stubs/pull/611version: add type-tests for the scipy.version constants by @jorenham in https://github.com/scipy/scipy-stubs/pull/612datasets: type-tests for scipy.datasets by @jorenham in https://github.com/scipy/scipy-stubs/pull/615differentiate: type-tests for derivative, jacobian, and hessian by @jorenham in https://github.com/scipy/scipy-stubs/pull/616sparse: constructor function type-tests by @jorenham in https://github.com/scipy/scipy-stubs/pull/619sparse: type-tests for tril and triu by @jorenham in https://github.com/scipy/scipy-stubs/pull/621python>=3.11 by @jorenham in https://github.com/scipy/scipy-stubs/pull/523optype to 0.10.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/590ruff to 0.11.12 by @jorenham in https://github.com/scipy/scipy-stubs/pull/592mypy to 1.16.1 by @jorenham in https://github.com/scipy/scipy-stubs/pull/617mdformat as dev dependency by @jorenham in https://github.com/scipy/scipy-stubs/pull/627ruff to 0.12.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/632ruff style by @jorenham in https://github.com/scipy/scipy-stubs/pull/589npt.NBitBase in linalg._misc by @jorenham in https://github.com/scipy/scipy-stubs/pull/593uv by @jorenham in https://github.com/scipy/scipy-stubs/pull/613ruff's ANN401 by @jorenham in https://github.com/scipy/scipy-stubs/pull/618scipy to known-local-folder in the ruff/isort config by @jorenham in https://github.com/scipy/scipy-stubs/pull/620.gitattributes for better handling of lockfiles files by @jorenham in https://github.com/scipy/scipy-stubs/pull/628tox.toml into pyproject.toml by @jorenham in https://github.com/scipy/scipy-stubs/pull/630README.md improvements by @jorenham in https://github.com/scipy/scipy-stubs/pull/636README badges and image by @jorenham in https://github.com/scipy/scipy-stubs/pull/637Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.15.3.0...v1.16.0.0
<!-- Release notes generated using configuration in .github/release.yml at v1.15.3.0 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.15.3.0 -->
_OptionsMILP by @it176131 in https://github.com/scipy/scipy-stubs/pull/511astral-sh/setup-uv to v6 by @jorenham in https://github.com/scipy/scipy-stubs/pull/509scipy to 1.15.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/516pyproject.toml by @it176131 in https://github.com/scipy/scipy-stubs/pull/513Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.15.2.2...v1.15.3.0
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.2 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.2 -->
ndimage: improved filter and measurement function annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/499optimize: narrowed OptimizeResult.{fun,x} attrs for minimize[_scalar] by @jorenham in https://github.com/scipy/scipy-stubs/pull/504optype.numpy compatibility by @jorenham in https://github.com/scipy/scipy-stubs/pull/491interpolate: accept ndarray for points in RegularGridInterpolator by @jorenham in https://github.com/scipy/scipy-stubs/pull/501optimize: accept a scalar for x0 in minimize by @jorenham in https://github.com/scipy/scipy-stubs/pull/502optimize: accept a scalar for x0 in fmin* by @jorenham in https://github.com/scipy/scipy-stubs/pull/503README.md bits by @jorenham in https://github.com/scipy/scipy-stubs/pull/505optype to 0.9.2 by @jorenham in https://github.com/scipy/scipy-stubs/pull/481ruff to 0.11.0 by @jorenham in https://github.com/scipy/scipy-stubs/pull/484numpy to 2.2.4 by @jorenham in https://github.com/scipy/scipy-stubs/pull/487optype to 0.9.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/490ruff to 0.11.4 by @jorenham in https://github.com/scipy/scipy-stubs/pull/506pyright compatibility by @jorenham in https://github.com/scipy/scipy-stubs/pull/482basedmypy config for mypy compat by @jorenham in https://github.com/scipy/scipy-stubs/pull/483files from [tool.mypy] by @jorenham in https://github.com/scipy/scipy-stubs/pull/486Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.15.2.1...v1.15.2.2
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.1 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.1 -->
interpolate: improved support for complex splines by @jorenham in https://github.com/scipy/scipy-stubs/pull/477optimize: allow calling minimize_scalar without a bracket by @jorenham in https://github.com/scipy/scipy-stubs/pull/467transform: accept proper Euler angles in Rotation.as_euler by @KiSchnelle in https://github.com/scipy/scipy-stubs/pull/470interpolate: accept scalar input in __call__ by @jorenham and @ev-br in https://github.com/scipy/scipy-stubs/pull/476 and https://github.com/scipy/scipy-stubs/pull/478ruff to 0.9.7 by @jorenham in https://github.com/scipy/scipy-stubs/pull/460basedpyright 1.28.1 and ruff 0.9.9 by @jorenham in https://github.com/scipy/scipy-stubs/pull/466add-trailing-comma by @jorenham in https://github.com/scipy/scipy-stubs/pull/461add-trailing-comma hook to also work on .pyi by @jorenham in https://github.com/scipy/scipy-stubs/pull/463Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.15.2.0...v1.15.2.1
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.0 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.15.2.0 -->
jorenham/scipy-stubs to scipy/scipy-stubs by @rgommersspecial: improved dtype handling in the "basic" functions by @jorenham in https://github.com/scipy/scipy-stubs/pull/419signal: generic lti, and dlti types by @jorenham in https://github.com/scipy/scipy-stubs/pull/425optimize: improved linprog and milp annotations by @jorenham in https://github.com/scipy/scipy-stubs/pull/427optimize: method-specific overloads and options for minimize_scalar by @jorenham in https://github.com/scipy/scipy-stubs/pull/428optimize: Generic InverseJacobian and related types by @jorenham in https://github.com/scipy/scipy-stubs/pull/429signal: improvements related to czt and zoom_fft by @jorenham in https://github.com/scipy/scipy-stubs/pull/430sparse: generic sparray by @jorenham in https://github.com/scipy/scipy-stubs/pull/435stats.zmap: accept complex input and basic shape-typing by @jorenham in https://github.com/scipy/scipy-stubs/pull/457stats: fix rv_discrete sample constructor by @jorenham in https://github.com/scipy/scipy-stubs/pull/418signal: add plain number option for find_peaks argument prominence by @drewsilcock in https://github.com/scipy/scipy-stubs/pull/448stats: make optimizer argument optional in rv_continuous.fit() by @drewsilcock in https://github.com/scipy/scipy-stubs/pull/451sp-repo-review to 2025.1.22 by @jorenham in https://github.com/scipy/scipy-stubs/pull/426basedpyright to 1.27.1, ruff to 0.9.6 by @jorenham in https://github.com/scipy/scipy-stubs/pull/454tox, less poe by @jorenham in https://github.com/scipy/scipy-stubs/pull/431ruff to 0.9.3 by @jorenham in https://github.com/scipy/scipy-stubs/pull/432sparse: prefer optype.numpy over scipy._typing by @jorenham in https://github.com/scipy/scipy-stubs/pull/434.toml auto-format config for vscode users by @jorenham in https://github.com/scipy/scipy-stubs/pull/444jorenham/scipy-stubs refs to scipy/scipy-stubs by @jorenham in https://github.com/scipy/scipy-stubs/pull/446uv as source of python versions by @jorenham in https://github.com/scipy/scipy-stubs/pull/452Full Changelog: https://github.com/scipy/scipy-stubs/compare/v1.15.1.0...v1.15.2.0
<!-- Release notes generated using configuration in .github/release.yml at v1.15.1.0 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.15.1.0 -->
This is the first scipy-stubs release that supports SciPy 1.15.1.
# TODO's by @jorenham in https://github.com/jorenham/scipy-stubs/pull/408spatial: generic [c]KDTree and other improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/413ruff to 0.8.5 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/396scipy to 1.15.0 (final) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/409ruff to 0.9.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/412FixTrailingComma codemod by @jorenham in https://github.com/jorenham/scipy-stubs/pull/397Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.15.0.0...v1.15.1.0
💬 interpolate: fix scipy version in interpnd deprecation warning messages by @jorenham in https://github.com/jorenham/scipy-stubs/pull/366
<!-- Release notes generated using configuration in .github/release.yml at v1.15.0.0 -->
This is the first scipy-stubs release that supports SciPy 1.15.0.
scipy version to 1.15.0rc1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/327misc: remove all code by @jorenham in https://github.com/jorenham/scipy-stubs/pull/328differentiate: preliminary (yet complete) stubs by @jorenham in https://github.com/jorenham/scipy-stubs/pull/329_typing: SPEC-7 compliant (private) ToRNG type alias (previously Seed) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/333fft[pack]: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/336integrate: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/337interpolate: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/338constants: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/330_lib: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/331cluster: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/334io: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/341linalg.interpolative: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/343linalg: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/344version: 1.15.0 remove commit_count by @jorenham in https://github.com/jorenham/scipy-stubs/pull/345ndimage: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/346optimize: SPEC 7 & scipy 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/347sparse: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/349special: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/351signal: 1.15.0 support by @jorenham in https://github.com/jorenham/scipy-stubs/pull/348spatial: 1.15.0 support and many improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/350stats: 1.15.0 support and several improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/353sparse: accept axes: tuple[int[:], int[:]] in coo_array.tensordot by @jorenham in https://github.com/jorenham/scipy-stubs/pull/357stats: 1.15.0 new distribution infrastructure by @jorenham in https://github.com/jorenham/scipy-stubs/pull/360interpolate: fix scipy version in interpnd deprecation warning messages by @jorenham in https://github.com/jorenham/scipy-stubs/pull/366special: mention the deprecation version in lpn and [c]lpmn by @jorenham in https://github.com/jorenham/scipy-stubs/pull/367interpolate: deprecate the dfitpack functions, fix & improve the sp* functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/372scipy<1.16 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/371scipy==1.15.0rc2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/376__config__ and __init__ annotations by @jorenham in https://github.com/jorenham/scipy-stubs/pull/362_lib: improved annotations by @jorenham in https://github.com/jorenham/scipy-stubs/pull/364special: several improved ufuncs by @jorenham in https://github.com/jorenham/scipy-stubs/pull/374special: ufunc improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/375signal: complete _filter_design, fix and improve _czt by @jorenham in https://github.com/jorenham/scipy-stubs/pull/378signal: complete _signaltools by @jorenham in https://github.com/jorenham/scipy-stubs/pull/379signal: complete _fir_filter_design.* en max_len_seq by @jorenham in https://github.com/jorenham/scipy-stubs/pull/384signal: complete _ltisys.* by @jorenham in https://github.com/jorenham/scipy-stubs/pull/385optype 0.8 simplifications by @jorenham in https://github.com/jorenham/scipy-stubs/pull/382stats: simplify _distn_infrastructure with optype 0.8 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/387_typing: DRY Falsy and Truthy type aliases by @jorenham in https://github.com/jorenham/scipy-stubs/pull/390sparse: add the missing sparse array/matrix dunder methods by @jorenham in https://github.com/jorenham/scipy-stubs/pull/391README.md improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/365optype to 0.8.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/380basedpyright to 1.23.1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/356ruff to 0.8.4 and disallow mdformat==0.7.20 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/358mdformat to 0.7.21 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/359basedmypy to 2.9.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/393typetest step by @jorenham in https://github.com/jorenham/scipy-stubs/pull/342scipy version requirements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/389.mypyignore by @jorenham in https://github.com/jorenham/scipy-stubs/pull/335.mypyignore cleanup by @jorenham in https://github.com/jorenham/scipy-stubs/pull/392Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.6...v1.15.0.0
<!-- Release notes generated using configuration in .github/release.yml at v1.14.1.6 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.14.1.6 -->
scipy.interpolate: The public API is now 100% annotated (by humans)scipy.sparse: The public API is now 100% annotated (by humans)
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.interpolate: remove duplicated function and classes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/267interpolate: stub _dfitpack by @jorenham in https://github.com/jorenham/scipy-stubs/pull/270spatial: improve _qhull by @jorenham in https://github.com/jorenham/scipy-stubs/pull/271interpolate: complete and improve interpnd by @jorenham in https://github.com/jorenham/scipy-stubs/pull/272interpolate: complete _bsplines and _ndbspline by @jorenham in https://github.com/jorenham/scipy-stubs/pull/273interpolate: complete RBFInterpolator and Rbf by @jorenham in https://github.com/jorenham/scipy-stubs/pull/274interpolate: complete _fitpack_impl (1/2) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/275interpolate: complete _fitpack_impl (2/2) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/276interpolate: complete _fitpack2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/277interpolate: complete _polyint by @jorenham in https://github.com/jorenham/scipy-stubs/pull/279signal: complete frequency response functions in _filter_design by @jorenham in https://github.com/jorenham/scipy-stubs/pull/287sparse: code cleanup by @jorenham in https://github.com/jorenham/scipy-stubs/pull/294sparse.linalg: complete the LinearOperators in _interface by @jorenham in https://github.com/jorenham/scipy-stubs/pull/295sparse explicit imports in __init__ by @jorenham in https://github.com/jorenham/scipy-stubs/pull/296sparse.linalg: complete the matrix operation functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/298sparse.linalg: complete the matrix norm functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/300sparse.linalg: complete LaplacianNd & accept in dtypes in LinearOperator by @jorenham in https://github.com/jorenham/scipy-stubs/pull/301sparse.linalg: complete _dsolve by @jorenham in https://github.com/jorenham/scipy-stubs/pull/302sparse.linalg: complete _eigen.arpack by @jorenham in https://github.com/jorenham/scipy-stubs/pull/303sparse.linalg: complete lobpcg by @jorenham in https://github.com/jorenham/scipy-stubs/pull/305sparse.linalg: complete svds by @jorenham in https://github.com/jorenham/scipy-stubs/pull/306sparse: complete the sparse arrays and matrices by @jorenham in https://github.com/jorenham/scipy-stubs/pull/307sparse: complete eye[_array] by @jorenham in https://github.com/jorenham/scipy-stubs/pull/309sparse: complete identity by @jorenham in https://github.com/jorenham/scipy-stubs/pull/310sparse: complete kron[sum] by @jorenham in https://github.com/jorenham/scipy-stubs/pull/311sparse: complete {h,v}stack by @jorenham in https://github.com/jorenham/scipy-stubs/pull/313sparse: complete [sp]diags[_array] by @jorenham in https://github.com/jorenham/scipy-stubs/pull/314sparse: complete {load,save}_npz by @jorenham in https://github.com/jorenham/scipy-stubs/pull/315sparse: complete _sputils.* (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/316sparse: complete _spfuncs.* (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/317sparse: complete find and tri{l,u} by @jorenham in https://github.com/jorenham/scipy-stubs/pull/318sparse: complete rand[om[_array]] by @jorenham in https://github.com/jorenham/scipy-stubs/pull/319sparse: complete bmat and block_{array,diag} by @jorenham in https://github.com/jorenham/scipy-stubs/pull/320sparse: adopt the new generic sparse arrays in linalg and csgraph by @jorenham in https://github.com/jorenham/scipy-stubs/pull/321sparse: various linalg.LinearOperator tweaks and improvements by @jorenham in https://github.com/jorenham/scipy-stubs/pull/322sparse: complete linalg.ls{m,q}r by @jorenham in https://github.com/jorenham/scipy-stubs/pull/323sparse: complete linalg._isolve.utils.* (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/324sparse: complete the remaining sparse.linalg functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/325interpolate: complete _rgi by @jorenham in https://github.com/jorenham/scipy-stubs/pull/278numpy<1.24 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/292basedmypy to 2.8.1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/293mypy bugs with numpy>=2.2.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/288interpolate: mark as 100% annotated by @jorenham in https://github.com/jorenham/scipy-stubs/pull/280README.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/299scipy.sparse by @jorenham in https://github.com/jorenham/scipy-stubs/pull/304CONTRIBUTING.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/308basedpyright to 1.22.1 and basedmypy to 2.8.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/255ruff to 0.8.2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/265#installation permalink by @jorenham in https://github.com/jorenham/scipy-stubs/pull/266poe {mypy,stubtest,typetest} by @jorenham in https://github.com/jorenham/scipy-stubs/pull/269basedpyright config by @jorenham in https://github.com/jorenham/scipy-stubs/pull/283.mypyignore in sdist build by @jorenham in https://github.com/jorenham/scipy-stubs/pull/284mdformat-pyproject by @miloth in https://github.com/jorenham/scipy-stubs/pull/262typetest-oldest-supported-numpy CI job by @jorenham in https://github.com/jorenham/scipy-stubs/pull/289https://github.com/user-attachments/assets/adbec640-2329-488b-bda2-d9687c6b1f7b
Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.5...v1.14.1.6
<!-- Release notes generated using configuration in .github/release.yml at v1.14.1.5 -->
<!-- Release notes generated using configuration in .github/release.yml at v1.14.1.5 -->
scipy-stubs is now also available on conda-forge, thanks to @lucascolleyscipy-stubs now uses uv for package- and project-management (previously poetry)scipy.linalg has been significantly improved
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 gausspulsescipy.special now accurately type-hints 80% of its ufuncs using type-signature-specific overloaded protocols.*: switch to the shape-typed optype.numpy array-likes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/192special: type-signature-specific annotations for 80% of the ufuncs by @jorenham in https://github.com/jorenham/scipy-stubs/pull/189special: update the development progress phase to 🌔 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/194signal: Add type stubs to _waveforms.pyi. by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/195datasets: Improved type-hints with TypedDicts and Literals by @jorenham in https://github.com/jorenham/scipy-stubs/pull/203optype.numpy for annotating arrays by @jorenham in https://github.com/jorenham/scipy-stubs/pull/204optimize: complete _constraints and _trustregion_constr.* by @jorenham in https://github.com/jorenham/scipy-stubs/pull/205optimize: complete the root-finding functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/207optimize: complete fixed_point by @jorenham in https://github.com/jorenham/scipy-stubs/pull/208optimize: complete curve_fit, leastsq, and fsolve by @jorenham in https://github.com/jorenham/scipy-stubs/pull/209optimize: complete HessianUpdateStrategy, BFGS, and SR1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/210optimize: complete basinhopping by @jorenham in https://github.com/jorenham/scipy-stubs/pull/211optimize: fix and complete direct by @jorenham in https://github.com/jorenham/scipy-stubs/pull/212optimize: complete _differentiable_functions (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/214optimize: complete _lsq (private subpackage) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/215self parameters by @jorenham in https://github.com/jorenham/scipy-stubs/pull/218optimize: complete differential_evolution by @jorenham in https://github.com/jorenham/scipy-stubs/pull/219optimize: complete dual_annealing by @jorenham in https://github.com/jorenham/scipy-stubs/pull/220optimize: fix and improve minimize and basinhopping by @jorenham in https://github.com/jorenham/scipy-stubs/pull/221optimize: complete shgo, improve basinhopping by @jorenham in https://github.com/jorenham/scipy-stubs/pull/222optimize: complete line_search by @jorenham in https://github.com/jorenham/scipy-stubs/pull/223optimize: complete _dcsrch (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/224optimize: complete linear_sum_assignment by @jorenham in https://github.com/jorenham/scipy-stubs/pull/225optimize: complete quadratic_assignment by @jorenham in https://github.com/jorenham/scipy-stubs/pull/227signal: Replace the final Untyped in _short_time_fft.pyi. by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/226optimize: complete _shgo_lib (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/228optimize: complete _trlib and _trustregion* (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/236optimize: complete _numdiff (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/237optimize: complete _group_columns (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/238optimize: remove _remove_redundancy (private) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/239optimize: complete fmin_cobyla by @jorenham in https://github.com/jorenham/scipy-stubs/pull/240optimize: complete fmin_l_bfgs_b and LbfgsInvHessProduct by @jorenham in https://github.com/jorenham/scipy-stubs/pull/241optimize: complete fmin_slsqp by @jorenham in https://github.com/jorenham/scipy-stubs/pull/242linalg._basic: add overloads for shapes and dtypes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/244linalg._decomp*: add overloads for shapes and dtypes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/245linalg: improved special matrix constructor signatures by @jorenham in https://github.com/jorenham/scipy-stubs/pull/246linalg: improved norm signature by @jorenham in https://github.com/jorenham/scipy-stubs/pull/247linalg: improve the shape- & scalar-type overloads of various functions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/252codegen/ directory by @jorenham in https://github.com/jorenham/scipy-stubs/pull/200README.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/206scipy-stubs is installable with conda by @jorenham in https://github.com/jorenham/scipy-stubs/pull/230scipy coverage phase table by @jorenham in https://github.com/jorenham/scipy-stubs/pull/243README.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/249README.md phase table to better reflect the Untyped counts by @jorenham in https://github.com/jorenham/scipy-stubs/pull/253uv setup guide by @miloth in https://github.com/jorenham/scipy-stubs/pull/254mdformat and mdformat-pyproject by @jorenham in https://github.com/jorenham/scipy-stubs/pull/187ruff to 0.8.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/191basedpyright to 1.22.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/193optype to 0.7.2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/197.venv when opened by @jorenham in https://github.com/jorenham/scipy-stubs/pull/213ruff to 0.8.1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/229optype to 0.7.3 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/232optimize: remove private testing module _tstutils by @jorenham in https://github.com/jorenham/scipy-stubs/pull/196ruff rules by default by @jorenham in https://github.com/jorenham/scipy-stubs/pull/201libcst codemod config by @jorenham in https://github.com/jorenham/scipy-stubs/pull/217optype array aliases to simplify the code by @jorenham in https://github.com/jorenham/scipy-stubs/pull/234optype strict-shape array-likes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/235uv as package manager by @miloth in https://github.com/jorenham/scipy-stubs/pull/174Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.4...v1.14.1.5
Bump poethepoet from 0.29.0 to 0.30.0 in the actions group by @dependabot in https://github.com/jorenham/scipy-stubs/pull/173
ruff to 0.7.4 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/178scipy.interpolate._cubic by @jorenham in https://github.com/jorenham/scipy-stubs/pull/182libcst to 1.5.1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/183optype import aliases by @jorenham in https://github.com/jorenham/scipy-stubs/pull/184Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.3...v1.14.1.4
annotated all of `scipy.signal.windows`
scipy.signal.windows (#153)scipy.signal spectral analysis functions (#157)
periodogramspectrogramwelchlombscarglecsdcoherencestft and istftcheck_COLA and check_NOLAscipy.optimize functions (#167), including
scipy.optimize.OptimizeResultselect_range params in scipy.linalg._decomp can only be int{16,32,64} if select="i"integrate._typing.QuadOpts with the kwargs of integrate.quadscipy.spatial signature of [c]KDTree.query does not match docsscipy.signal.find_peaks returned dictionary type is missing the 'widths' keyscipy.fft.next_fast_lenscipy.stats.qmc.scale does not accept numpy array with typed shape as input when type checked with pyrightbasedmypy[faster-cache] by @jorenham in https://github.com/jorenham/scipy-stubs/pull/150ruff to 0.7.2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/151integrate._typing.QuadOpts with integrate.quad kwargs by @jorenham in https://github.com/jorenham/scipy-stubs/pull/156signal.windows: Add type stubs for _windows.pyi. by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/153signal: Add type stubs to _spectral_py.pyi. by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/157scipy.signal._peak_finding by @jorenham in https://github.com/jorenham/scipy-stubs/pull/161scipy.spatial._[c]kdtree by @jorenham in https://github.com/jorenham/scipy-stubs/pull/162scipy.fft._helper by @jorenham in https://github.com/jorenham/scipy-stubs/pull/164scipy.linalg._decomp by @jorenham in https://github.com/jorenham/scipy-stubs/pull/165__all__ in scipy.optimize by @jorenham in https://github.com/jorenham/scipy-stubs/pull/166scipy.optimize._optimize by @jorenham in https://github.com/jorenham/scipy-stubs/pull/167ruff to 0.7.3 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/170basedpyright to 1.21.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/171ndarray in scipy.stats.qmc by @jorenham in https://github.com/jorenham/scipy-stubs/pull/172Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.2...v1.14.1.3
scipy.integrate.quad rejected all callables if args was passed
scipy.stats (https://github.com/jorenham/scipy-stubs/pull/135)scipy.fft (https://github.com/jorenham/scipy-stubs/pull/142)scipy.integrate.quad rejected all callables if args was passed (https://github.com/jorenham/scipy-stubs/pull/141)scipy.stats.permutation_test rejected statistic with multiple parameters (https://github.com/jorenham/scipy-stubs/pull/143)scipy.stats by @jorenham in https://github.com/jorenham/scipy-stubs/pull/135basedpyright to 1.19.1 and tox to 4.23.2 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/136ruff to 0.7.1 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/138scipy.integrate quad function parameter types by @jorenham in https://github.com/jorenham/scipy-stubs/pull/141scipy.fft by @jorenham in https://github.com/jorenham/scipy-stubs/pull/142basedpyright to 1.20.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/144repo-review, codespell, and mdformat by @jorenham in https://github.com/jorenham/scipy-stubs/pull/146basedmypy 2.7.0 (mypy 1.3.0) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/147poe clean dev command by @jorenham in https://github.com/jorenham/scipy-stubs/pull/148Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.1...v1.14.1.2
fix and improve scipy.optimize.minimize by @jorenham in https://github.com/jorenham/scipy-stubs/pull/86
scipy.optimize.minimize by @jorenham in https://github.com/jorenham/scipy-stubs/pull/86basedpyright to 1.19.0 and tox to 4.23.0 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/88ruff to 0.7.0, and enable ANN by @jorenham in https://github.com/jorenham/scipy-stubs/pull/90.mypy_cache to .gitignore by @jorenham in https://github.com/jorenham/scipy-stubs/pull/91scipy optional, and loosened the version restrictions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/96scipy.linalg by @jorenham in https://github.com/jorenham/scipy-stubs/pull/109basedpyright in pre-commit by @jorenham in https://github.com/jorenham/scipy-stubs/pull/110scipy.io by @jorenham in https://github.com/jorenham/scipy-stubs/pull/112Any for Untyped by @jorenham in https://github.com/jorenham/scipy-stubs/pull/114scipy._lib by @jorenham in https://github.com/jorenham/scipy-stubs/pull/116scipy.spatial by @jorenham in https://github.com/jorenham/scipy-stubs/pull/117scipy/signal/_peak_finding.pyi by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/87scipy.odr by @jorenham in https://github.com/jorenham/scipy-stubs/pull/119allowlist.txt rules as regexes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/122scipy.fft.dct, and add relevant type aliases by @Avasam in https://github.com/jorenham/scipy-stubs/pull/118scipy.fftpack by @jorenham in https://github.com/jorenham/scipy-stubs/pull/121scipy.signal._savitzky_golay by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/124scipy.integrate by @jorenham in https://github.com/jorenham/scipy-stubs/pull/128Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1.0...v1.14.1.1
deal with deprecated scipy.integrate modules by @jorenham in https://github.com/jorenham/scipy-stubs/pull/61
scipy.stats.distributions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/43scipy.optimize (partial) by @jorenham in https://github.com/jorenham/scipy-stubs/pull/46__all__ by @pavyamsiri in https://github.com/jorenham/scipy-stubs/pull/54scipy.io by @jorenham in https://github.com/jorenham/scipy-stubs/pull/59scipy.cluster by @jorenham in https://github.com/jorenham/scipy-stubs/pull/60scipy.integrate modules by @jorenham in https://github.com/jorenham/scipy-stubs/pull/61scipy.linalg modules by @jorenham in https://github.com/jorenham/scipy-stubs/pull/62scipy.constants modules by @jorenham in https://github.com/jorenham/scipy-stubs/pull/63scipy.interpolate by @jorenham in https://github.com/jorenham/scipy-stubs/pull/64basedpyright to 1.18.4 by @jorenham in https://github.com/jorenham/scipy-stubs/pull/65verifytypes by @jorenham in https://github.com/jorenham/scipy-stubs/pull/67./typetests to ./tests/typetests by @jorenham in https://github.com/jorenham/scipy-stubs/pull/70README.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/71scipy.ndimage by @jorenham in https://github.com/jorenham/scipy-stubs/pull/72scipy.odr by @jorenham in https://github.com/jorenham/scipy-stubs/pull/73scipy.spatial by @jorenham in https://github.com/jorenham/scipy-stubs/pull/74README.md by @jorenham in https://github.com/jorenham/scipy-stubs/pull/75scipy._lib by @jorenham in https://github.com/jorenham/scipy-stubs/pull/76stubtest build errors in scipy.stats by @jorenham in https://github.com/jorenham/scipy-stubs/pull/77scipy.signal stubtest by @jorenham in https://github.com/jorenham/scipy-stubs/pull/78scipy.stats stubtest by @jorenham in https://github.com/jorenham/scipy-stubs/pull/80scipy.LowLevelCallable by @jorenham in https://github.com/jorenham/scipy-stubs/pull/82scipy.sparse stubtests by @jorenham in https://github.com/jorenham/scipy-stubs/pull/83scipy.signal by @jorenham in https://github.com/jorenham/scipy-stubs/pull/84Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.4.1a3...v1.14.1.0
fixes & improvements for scipy.stats.distributions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/37
scipy.stats.distributions by @jorenham in https://github.com/jorenham/scipy-stubs/pull/37scipy.integrate quad integrand function signatures by @jorenham in https://github.com/jorenham/scipy-stubs/pull/38scipy.integrate.nquad by @jorenham in https://github.com/jorenham/scipy-stubs/pull/39scipy.stats._distn_infrastructure by @jorenham in https://github.com/jorenham/scipy-stubs/pull/41Full Changelog: https://github.com/jorenham/scipy-stubs/compare/v1.14.1a2...v1.4.1a3
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →