Skip to content

Commit 2a14f1c

Browse files
committed
optimize: Add ignore comments to allow subtyping of Any.
1 parent a8356de commit 2a14f1c

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

scipy-stubs/optimize/cobyla.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ from typing_extensions import Any, deprecated
55
__all__ = ["OptimizeResult", "fmin_cobyla"]
66

77
@deprecated("will be removed in SciPy v2.0.0")
8-
class OptimizeResult(Any): ...
8+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
99

1010
@deprecated("will be removed in SciPy v2.0.0")
1111
def fmin_cobyla(

scipy-stubs/optimize/lbfgsb.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def zeros(
1414
like: object = ...,
1515
) -> object: ...
1616
@deprecated("will be removed in SciPy v2.0.0")
17-
class OptimizeResult(Any): ...
17+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
1818

1919
@deprecated("will be removed in SciPy v2.0.0")
2020
def fmin_l_bfgs_b(

scipy-stubs/optimize/minpack.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def zeros(
1414
like: object = ...,
1515
) -> object: ...
1616
@deprecated("will be removed in SciPy v2.0.0")
17-
class OptimizeResult(Any): ...
17+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
1818

1919
@deprecated("will be removed in SciPy v2.0.0")
2020
class OptimizeWarning(UserWarning): ...

scipy-stubs/optimize/optimize.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def zeros(
3636
like: object = ...,
3737
) -> object: ...
3838
@deprecated("will be removed in SciPy v2.0.0")
39-
class OptimizeResult(Any): ...
39+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
4040

4141
@deprecated("will be removed in SciPy v2.0.0")
4242
class OptimizeWarning(UserWarning): ...

scipy-stubs/optimize/slsqp.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def zeros(
1515
like: object = ...,
1616
) -> object: ...
1717
@deprecated("will be removed in SciPy v2.0.0")
18-
class OptimizeResult(Any): ...
18+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
1919

2020
@deprecated("will be removed in SciPy v2.0.0")
2121
def fmin_slsqp(

scipy-stubs/optimize/tnc.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def zeros(
1414
like: object = ...,
1515
) -> object: ...
1616
@deprecated("will be removed in SciPy v2.0.0")
17-
class OptimizeResult(Any): ...
17+
class OptimizeResult(Any): ... # type: ignore[no-subclass-any]
1818

1919
@deprecated("will be removed in SciPy v2.0.0")
2020
def fmin_tnc(

0 commit comments

Comments
 (0)