Skip to content

Commit a5e7f63

Browse files
committed
👽️ remove scipy._util numpy error class re-exports
1 parent 0e23046 commit a5e7f63

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

.mypyignore-todo

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
scipy._lib._util.ComplexWarning
2-
scipy._lib._util.DTypePromotionError
3-
scipy._lib._util.VisibleDeprecationWarning
41
scipy._lib._util.np_vecdot
52
scipy._lib.pyprima
63
scipy._lib.pyprima.cobyla

scipy-stubs/_lib/_util.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import optype as op
99
import optype.numpy as onp
1010
import optype.numpy.compat as npc
1111
from numpy.random import Generator as Generator # implicit re-export
12-
from optype.numpy.compat import DTypePromotionError as DTypePromotionError # implicit re-export
1312
from scipy._typing import RNG, EnterSelfMixin
1413

1514
_AnyRNGT = TypeVar("_AnyRNGT", np.random.RandomState, np.random.Generator)
@@ -38,9 +37,6 @@ GeneratorType = TypeVar("GeneratorType", bound=_RNG) # noqa: PYI001 # oof
3837

3938
###
4039

41-
class ComplexWarning(RuntimeWarning): ...
42-
class VisibleDeprecationWarning(UserWarning): ...
43-
4440
class AxisError(ValueError, IndexError):
4541
_msg: Final[str | None]
4642
axis: Final[int | None]

0 commit comments

Comments
 (0)