Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scipy-stubs/_lib/_ccallback.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class LowLevelCallable(tuple[PyCapsule, _FuncT_co, _DataT_co], Generic[_FuncT_co
@overload
def __new__(cls, function: Self, user_data: _DataT_co | None = None, signature: str | None = None) -> Self: ...
@overload
def __new__(cls, function: _FuncT_co, user_data: _DataT_co = ..., signature: str | None = None) -> Self: ...
def __new__(cls, function: _FuncT_co, user_data: _DataT_co, signature: str | None = None) -> Self: ...
@classmethod
@overload
def from_cython(
Expand Down
2 changes: 1 addition & 1 deletion scipy-stubs/constants/codata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __all__ = ["ConstantWarning", "c", "find", "k", "physical_constants", "precision
class ConstantWarning(DeprecationWarning): ...

@deprecated("will be removed in SciPy v2.0.0")
def find(sub: str | None = ..., disp: bool = ...) -> object: ...
def find(sub: str | None = None, disp: bool = False) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def precision(key: str) -> float: ...
@deprecated("will be removed in SciPy v2.0.0")
Expand Down
16 changes: 8 additions & 8 deletions scipy-stubs/fftpack/basic.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ __all__ = ["fft", "fft2", "fftn", "ifft", "ifft2", "ifftn", "irfft", "rfft"]
__MESSAGE: Final = "will be removed in SciPy v2.0.0"

@deprecated(__MESSAGE)
def fft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ...
def fft(x: object, n: object = None, axis: object = -1, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def ifft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ...
def ifft(x: object, n: object = None, axis: object = -1, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def rfft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ...
def rfft(x: object, n: object = None, axis: object = -1, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def irfft(x: object, n: object = ..., axis: object = ..., overwrite_x: object = ...) -> object: ...
def irfft(x: object, n: object = None, axis: object = -1, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def fftn(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ...
def fftn(x: object, shape: object = None, axes: object = None, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def ifftn(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ...
def ifftn(x: object, shape: object = None, axes: object = None, overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def fft2(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ...
def fft2(x: object, shape: object = None, axes: object = (-2, -1), overwrite_x: object = False) -> object: ...
@deprecated(__MESSAGE)
def ifft2(x: object, shape: object = ..., axes: object = ..., overwrite_x: object = ...) -> object: ...
def ifft2(x: object, shape: object = None, axes: object = (-2, -1), overwrite_x: object = False) -> object: ...
6 changes: 3 additions & 3 deletions scipy-stubs/fftpack/helper.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ __all__ = ["fftfreq", "fftshift", "ifftshift", "next_fast_len", "rfftfreq"]
__MESSAGE: Final = "will be removed in SciPy v2.0.0"

@deprecated(__MESSAGE)
def fftshift(x: object, axes: object = ...) -> object: ...
def fftshift(x: object, axes: object = None) -> object: ...
@deprecated(__MESSAGE)
def ifftshift(x: object, axes: object = ...) -> object: ...
def ifftshift(x: object, axes: object = None) -> object: ...
@deprecated(__MESSAGE)
def next_fast_len(target: object) -> object: ...
@deprecated(__MESSAGE)
def rfftfreq(n: object, d: object = ...) -> object: ...
def rfftfreq(n: object, d: object = 1.0) -> object: ...
16 changes: 8 additions & 8 deletions scipy-stubs/fftpack/pseudo_diffs.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ __all__ = ["cc_diff", "convolve", "cs_diff", "diff", "hilbert", "ihilbert", "iti
__MESSAGE: Final = "will be removed in SciPy v2.0.0"

@deprecated(__MESSAGE)
def diff(x: object, order: object = 1, period: object = ..., _cache: object = ...) -> object: ...
def diff(x: object, order: object = 1, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def tilbert(x: object, h: object, period: object = ..., _cache: object = ...) -> object: ...
def tilbert(x: object, h: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def itilbert(x: object, h: object, period: object = ..., _cache: object = ...) -> object: ...
def itilbert(x: object, h: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def hilbert(x: object, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def ihilbert(x: object) -> object: ...
@deprecated(__MESSAGE)
def cs_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ...
def cs_diff(x: object, a: object, b: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def sc_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ...
def sc_diff(x: object, a: object, b: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def ss_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ...
def ss_diff(x: object, a: object, b: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def cc_diff(x: object, a: object, b: object, period: object = ..., _cache: object = ...) -> object: ...
def cc_diff(x: object, a: object, b: object, period: object = None, _cache: object = ...) -> object: ...
@deprecated(__MESSAGE)
def shift(x: object, a: object, period: object = ..., _cache: object = ...) -> object: ...
def shift(x: object, a: object, period: object = None, _cache: object = ...) -> object: ...
16 changes: 8 additions & 8 deletions scipy-stubs/fftpack/realtransforms.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,33 @@ __MESSAGE: Final = "will be removed in SciPy v2.0.0"

@deprecated(__MESSAGE)
def dctn(
x: object, type: object = ..., shape: object = ..., axes: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, shape: object = None, axes: object = None, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def idctn(
x: object, type: object = ..., shape: object = ..., axes: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, shape: object = None, axes: object = None, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def dstn(
x: object, type: object = ..., shape: object = ..., axes: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, shape: object = None, axes: object = None, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def idstn(
x: object, type: object = ..., shape: object = ..., axes: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, shape: object = None, axes: object = None, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def dct(
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, n: object = None, axis: object = -1, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def idct(
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, n: object = None, axis: object = -1, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def dst(
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, n: object = None, axis: object = -1, norm: object = None, overwrite_x: object = False
) -> object: ...
@deprecated(__MESSAGE)
def idst(
x: object, type: object = ..., n: object = ..., axis: object = ..., norm: object = ..., overwrite_x: object = ...
x: object, type: object = 2, n: object = None, axis: object = -1, norm: object = None, overwrite_x: object = False
) -> object: ...
38 changes: 19 additions & 19 deletions scipy-stubs/integrate/odepack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ def odeint(
func: object,
y0: object,
t: object,
args: object = ...,
Dfun: object = ...,
col_deriv: object = ...,
full_output: object = ...,
ml: object = ...,
mu: object = ...,
rtol: object = ...,
atol: object = ...,
tcrit: object = ...,
h0: object = ...,
hmax: object = ...,
hmin: object = ...,
ixpr: object = ...,
mxstep: object = ...,
mxhnil: object = ...,
mxordn: object = ...,
mxords: object = ...,
printmessg: object = ...,
tfirst: object = ...,
args: object = (),
Dfun: object = None,
col_deriv: object = 0,
full_output: object = 0,
ml: object = None,
mu: object = None,
rtol: object = None,
atol: object = None,
tcrit: object = None,
h0: object = 0.0,
hmax: object = 0.0,
hmin: object = 0.0,
ixpr: object = 0,
mxstep: object = 0,
mxhnil: object = 0,
mxordn: object = 12,
mxords: object = 5,
printmessg: object = 0,
tfirst: object = False,
) -> object: ...
41 changes: 24 additions & 17 deletions scipy-stubs/integrate/quadpack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,34 @@ class IntegrationWarning(UserWarning): ...

@deprecated("will be removed in SciPy v2.0.0")
def dblquad(
func: object, a: object, b: object, gfun: object, hfun: object, args: object = ..., epsabs: object = ..., epsrel: object = ...
func: object,
a: object,
b: object,
gfun: object,
hfun: object,
args: object = (),
epsabs: object = 1.49e-8,
epsrel: object = 1.49e-8,
) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def nquad(func: object, ranges: object, args: object = ..., opts: object = ..., full_output: object = ...) -> object: ...
def nquad(func: object, ranges: object, args: object = None, opts: object = None, full_output: object = False) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def quad(
func: object,
a: object,
b: object,
args: object = ...,
full_output: object = ...,
epsabs: object = ...,
epsrel: object = ...,
limit: object = ...,
points: object = ...,
weight: object = ...,
wvar: object = ...,
wopts: object = ...,
maxp1: object = ...,
limlst: object = ...,
complex_func: object = ...,
args: object = (),
full_output: object = 0,
epsabs: object = 1.49e-8,
epsrel: object = 1.49e-8,
limit: object = 50,
points: object = None,
weight: object = None,
wvar: object = None,
wopts: object = None,
maxp1: object = 50,
limlst: object = 50,
complex_func: object = False,
) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def tplquad(
Expand All @@ -39,7 +46,7 @@ def tplquad(
hfun: object,
qfun: object,
rfun: object,
args: object = ...,
epsabs: object = ...,
epsrel: object = ...,
args: object = (),
epsabs: object = 1.49e-8,
epsrel: object = 1.49e-8,
) -> object: ...
8 changes: 4 additions & 4 deletions scipy-stubs/interpolate/_interpolate.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ class interp2d:
x: Never,
y: Never,
z: Never,
kind: object = ...,
copy: object = ...,
bounds_error: object = ...,
fill_value: object = ...,
kind: object = "linear",
copy: object = True,
bounds_error: object = False,
fill_value: object = None,
) -> Never: ...

class interp1d(_Interpolator1D): # legacy
Expand Down
90 changes: 45 additions & 45 deletions scipy-stubs/interpolate/fitpack.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,68 +26,68 @@ class BSpline(_BSpline): ...
@deprecated("will be removed in SciPy v2.0.0")
def splprep(
x: object,
w: object = ...,
u: object = ...,
ub: object = ...,
ue: object = ...,
k: object = ...,
task: object = ...,
s: object = ...,
t: object = ...,
full_output: object = ...,
nest: object = ...,
per: object = ...,
quiet: object = ...,
w: object = None,
u: object = None,
ub: object = None,
ue: object = None,
k: object = 3,
task: object = 0,
s: object = None,
t: object = None,
full_output: object = 0,
nest: object = None,
per: object = 0,
quiet: object = 1,
) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def splrep(
x: object,
y: object,
w: object = ...,
xb: object = ...,
xe: object = ...,
k: object = ...,
task: object = ...,
s: object = ...,
t: object = ...,
full_output: object = ...,
per: object = ...,
quiet: object = ...,
w: object = None,
xb: object = None,
xe: object = None,
k: object = 3,
task: object = 0,
s: object = None,
t: object = None,
full_output: object = 0,
per: object = 0,
quiet: object = 1,
) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def splev(x: object, tck: object, der: object = ..., ext: object = ...) -> object: ...
def splev(x: object, tck: object, der: object = 0, ext: object = 0) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def splint(a: object, b: object, tck: object, full_output: object = ...) -> object: ...
def splint(a: object, b: object, tck: object, full_output: object = 0) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def sproot(tck: object, mest: object = ...) -> object: ...
def sproot(tck: object, mest: object = 10) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def spalde(x: object, tck: object) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def insert(x: object, tck: object, m: object = ..., per: object = ...) -> object: ...
def insert(x: object, tck: object, m: object = 1, per: object = 0) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def splder(tck: object, n: object = ...) -> object: ...
def splder(tck: object, n: object = 1) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def splantider(tck: object, n: object = ...) -> object: ...
def splantider(tck: object, n: object = 1) -> object: ...
@deprecated("will be removed in SciPy v2.0.0")
def bisplrep(
x: object,
y: object,
z: object,
w: object = ...,
xb: object = ...,
xe: object = ...,
yb: object = ...,
ye: object = ...,
kx: object = ...,
ky: object = ...,
task: object = ...,
s: object = ...,
eps: object = ...,
tx: object = ...,
ty: object = ...,
full_output: object = ...,
nxest: object = ...,
nyest: object = ...,
quiet: object = ...,
w: object = None,
xb: object = None,
xe: object = None,
yb: object = None,
ye: object = None,
kx: object = 3,
ky: object = 3,
task: object = 0,
s: object = None,
eps: object = 1e-16,
tx: object = None,
ty: object = None,
full_output: object = 0,
nxest: object = None,
nyest: object = None,
quiet: object = 1,
) -> object: ...
def bisplev(x: object, y: object, tck: object, dx: object = ..., dy: object = ...) -> object: ...
def bisplev(x: object, y: object, tck: object, dx: object = 0, dy: object = 0) -> object: ...
4 changes: 2 additions & 2 deletions scipy-stubs/interpolate/interpolate.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class BSpline(_bsplines.BSpline): ...

@deprecated("will be removed in SciPy v2.0.0")
def make_interp_spline(
x: object, y: object, k: object = ..., t: object = ..., bc_type: object = ..., axis: object = ..., check_finite: object = ...
x: object, y: object, k: object = 3, t: object = None, bc_type: object = None, axis: object = 0, check_finite: object = True
) -> Any: ...

# _fitpack2
Expand Down Expand Up @@ -61,5 +61,5 @@ class RegularGridInterpolator(_rgi.RegularGridInterpolator): ...

@deprecated("will be removed in SciPy v2.0.0")
def interpn(
points: object, values: object, xi: object, method: object = ..., bounds_error: object = ..., fill_value: object = ...
points: object, values: object, xi: object, method: object = "linear", bounds_error: object = True, fill_value: object = ...
) -> Any: ...
2 changes: 1 addition & 1 deletion scipy-stubs/interpolate/ndgriddata.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ class NearestNDInterpolator(_ndgriddata.NearestNDInterpolator): ...

@deprecated("will be removed in SciPy v2.0.0")
def griddata(
points: object, values: object, xi: object, method: object = ..., fill_value: float = ..., rescale: object = ...
points: object, values: object, xi: object, method: object = "linear", fill_value: float = ..., rescale: object = False
) -> object: ...
4 changes: 2 additions & 2 deletions scipy-stubs/interpolate/polyint.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class KroghInterpolator(_polyint.KroghInterpolator): ...
class BarycentricInterpolator(_polyint.BarycentricInterpolator): ...

@deprecated("will be removed in SciPy v2.0.0")
def krogh_interpolate(xi: object, yi: object, x: object, der: object = ..., axis: object = ...) -> Any: ...
def krogh_interpolate(xi: object, yi: object, x: object, der: object = 0, axis: object = 0) -> Any: ...
@deprecated("will be removed in SciPy v2.0.0")
def approximate_taylor_polynomial(f: object, x: object, degree: object, scale: object, order: object = ...) -> Any: ...
def approximate_taylor_polynomial(f: object, x: object, degree: object, scale: object, order: object = None) -> Any: ...
@deprecated("will be removed in SciPy v2.0.0")
def barycentric_interpolate(xi: object, yi: object, x: object, axis: int = 0, *, der: object = 0, rng: object = None) -> Any: ...
Loading