@@ -9,7 +9,6 @@ import optype as op
9
9
import optype .numpy as onp
10
10
import optype .numpy .compat as npc
11
11
from numpy .random import Generator as Generator # implicit re-export
12
- from optype .numpy .compat import DTypePromotionError as DTypePromotionError # implicit re-export
13
12
from scipy ._typing import RNG , EnterSelfMixin
14
13
15
14
_AnyRNGT = TypeVar ("_AnyRNGT" , np .random .RandomState , np .random .Generator )
@@ -38,9 +37,6 @@ GeneratorType = TypeVar("GeneratorType", bound=_RNG) # noqa: PYI001 # oof
38
37
39
38
###
40
39
41
- class ComplexWarning (RuntimeWarning ): ...
42
- class VisibleDeprecationWarning (UserWarning ): ...
43
-
44
40
class AxisError (ValueError , IndexError ):
45
41
_msg : Final [str | None ]
46
42
axis : Final [int | None ]
@@ -121,3 +117,13 @@ def normalize_axis_index(axis: int, ndim: onp.NDim) -> onp.NDim: ...
121
117
def normalize_axis_index (axis : int | _AxisT , ndim : _AxisT ) -> _AxisT : ...
122
118
@overload
123
119
def 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