Skip to content

Commit 705b940

Browse files
authored
🗑️ special.comb: remove expired @deprecated non-integer exact=True overloads (#793)
2 parents 24d0f57 + 7597ade commit 705b940

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

scipy-stubs/_lib/_util.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ GeneratorType = TypeVar("GeneratorType", bound=_RNG) # noqa: PYI001 # oof
3939

4040
###
4141

42-
# mypy<=1.16.1 workaround
42+
# mypy<=1.17.0 workaround
4343
if sys.version_info >= (3, 14):
4444
# see https://github.com/python/cpython/pull/130935
4545
__conditional_annotations__: Final[set[int]] = ...

scipy-stubs/optimize/_linprog.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def linprog(
141141
integrality: _Max3 | Sequence[_Max3] | onp.CanArrayND[npc.integer] | None = None,
142142
) -> _OptimizeResult: ...
143143
@overload # interior-point (legacy, see https://github.com/scipy/scipy/issues/15707)
144-
@deprecated("`method='interior-point'` is deprecated and will be removed in SciPy 1.16.0. Please use one of the HIGHS solvers.")
144+
@deprecated("`method='interior-point'` is deprecated and will be removed in SciPy 1.17. Please use one of the HIGHS solvers.")
145145
def linprog(
146146
c: onp.ToFloat1D,
147147
A_ub: onp.ToFloat2D | None = None,
@@ -157,7 +157,7 @@ def linprog(
157157
integrality: _Max3 | Sequence[_Max3] | onp.CanArrayND[npc.integer] | None = None,
158158
) -> _OptimizeResult: ...
159159
@overload # revised simplex (legacy, see https://github.com/scipy/scipy/issues/15707)
160-
@deprecated("`method='revised simplex'` is deprecated and will be removed in SciPy 1.16.0. Please use one of the HIGHS solvers.")
160+
@deprecated("`method='revised simplex'` is deprecated and will be removed in SciPy 1.17. Please use one of the HIGHS solvers.")
161161
def linprog(
162162
c: onp.ToFloat1D,
163163
A_ub: onp.ToFloat2D | None = None,
@@ -173,7 +173,7 @@ def linprog(
173173
integrality: _Max3 | Sequence[_Max3] | onp.CanArrayND[npc.integer] | None = None,
174174
) -> _OptimizeResult: ...
175175
@overload # simplex (legacy, see https://github.com/scipy/scipy/issues/15707)
176-
@deprecated("`method='simplex'` is deprecated and will be removed in SciPy 1.16.0. Please use one of the HIGHS solvers.")
176+
@deprecated("`method='simplex'` is deprecated and will be removed in SciPy 1.17. Please use one of the HIGHS solvers.")
177177
def linprog(
178178
c: onp.ToFloat1D,
179179
A_ub: onp.ToFloat2D | None = None,

scipy-stubs/special/_add_newdocs.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import sys
22
from typing import Final, LiteralString
33

4-
# mypy<=1.16.1 workaround
4+
# mypy<=1.17.0 workaround
55
if sys.version_info >= (3, 14):
66
# see https://github.com/python/cpython/pull/130935
77
__conditional_annotations__: Final[set[int]] = ...

scipy-stubs/special/_basic.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,6 @@ def clpmn(m: onp.ToInt, n: onp.ToInt, z: _ToComplexOrND, type: L[2, 3] = 3) -> _
380380
@overload
381381
def comb(N: onp.ToInt | onp.Array0D[npc.integer], k: onp.ToInt, *, exact: onp.ToTrue, repetition: op.CanBool = False) -> int: ...
382382
@overload
383-
@deprecated("`exact=True` is deprecated for non-integer `N` and `k` and will raise an error in SciPy 1.16.0")
384-
def comb(N: onp.ToFloat, k: onp.ToJustFloat, *, exact: onp.ToTrue, repetition: op.CanBool = False) -> _f: ...
385-
@overload
386-
@deprecated("`exact=True` is deprecated for non-integer `N` and `k` and will raise an error in SciPy 1.16.0")
387-
def comb(N: onp.ToJustFloat, k: onp.ToFloat, *, exact: onp.ToTrue, repetition: op.CanBool = False) -> _f: ...
388-
@overload
389383
def comb(N: onp.ToFloat, k: onp.ToFloat, *, exact: onp.ToFalse = False, repetition: op.CanBool = False) -> _f: ...
390384
@overload
391385
def comb(N: _ToFloatOrND, k: onp.ToFloatND, *, exact: onp.ToFalse = False, repetition: op.CanBool = False) -> _f_nd: ...

0 commit comments

Comments
 (0)