@@ -9,7 +9,6 @@ import optype as op
99import optype .numpy as onp
1010import optype .numpy .compat as npc
1111from numpy .random import Generator as Generator # implicit re-export
12- from optype .numpy .compat import DTypePromotionError as DTypePromotionError # implicit re-export
1312from 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-
4440class AxisError (ValueError , IndexError ):
4541 _msg : Final [str | None ]
4642 axis : Final [int | None ]
@@ -121,3 +117,13 @@ def normalize_axis_index(axis: int, ndim: onp.NDim) -> onp.NDim: ...
121117def normalize_axis_index (axis : int | _AxisT , ndim : _AxisT ) -> _AxisT : ...
122118@overload
123119def normalize_axis_index (axis : _AxisT , ndim : onp .NDim | _AxisT ) -> _AxisT : ...
120+ @overload
121+ def np_vecdot (x1 : onp .ToIntStrict1D , x2 : onp .ToIntStrict1D , / , * , axis : op .CanIndex = - 1 ) -> np .integer : ...
122+ @overload
123+ def np_vecdot (x1 : onp .ToFloatStrict1D , x2 : onp .ToJustFloatStrict1D , / , * , axis : op .CanIndex = - 1 ) -> npc .floating : ...
124+ @overload
125+ def np_vecdot (x1 : onp .ToJustFloatStrict1D , x2 : onp .ToFloatStrict1D , / , * , axis : op .CanIndex = - 1 ) -> npc .floating : ...
126+ @overload
127+ def np_vecdot (x1 : onp .ToComplexStrict1D , x2 : onp .ToJustComplexStrict1D , / , * , axis : op .CanIndex = - 1 ) -> npc .complexfloating : ...
128+ @overload
129+ def np_vecdot (x1 : onp .ToJustComplexStrict1D , x2 : onp .ToComplexStrict1D , / , * , axis : op .CanIndex = - 1 ) -> npc .complexfloating : ...
0 commit comments