Skip to content

Commit ed16404

Browse files
committed
👽️ annotate scipy._lib._util.np_vecdot
1 parent a5e7f63 commit ed16404

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.mypyignore-todo

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
scipy._lib._util.np_vecdot
21
scipy._lib.pyprima
32
scipy._lib.pyprima.cobyla
43
scipy._lib.pyprima.cobyla.cobyla

scipy-stubs/_lib/_util.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,14 @@ def normalize_axis_index(axis: int, ndim: onp.NDim) -> onp.NDim: ...
117117
def normalize_axis_index(axis: int | _AxisT, ndim: _AxisT) -> _AxisT: ...
118118
@overload
119119
def normalize_axis_index(axis: _AxisT, ndim: onp.NDim | _AxisT) -> _AxisT: ...
120+
121+
@overload
122+
def np_vecdot(x1: onp.ToIntStrict1D, x2: onp.ToIntStrict1D, /, *, axis: op.CanIndex = -1) -> np.integer: ...
123+
@overload
124+
def np_vecdot(x1: onp.ToFloatStrict1D, x2: onp.ToJustFloatStrict1D, /, *, axis: op.CanIndex = -1) -> npc.floating: ...
125+
@overload
126+
def np_vecdot(x1: onp.ToJustFloatStrict1D, x2: onp.ToFloatStrict1D, /, *, axis: op.CanIndex = -1) -> npc.floating: ...
127+
@overload
128+
def np_vecdot(x1: onp.ToComplexStrict1D, x2: onp.ToJustComplexStrict1D, /, *, axis: op.CanIndex = -1) -> npc.complexfloating: ...
129+
@overload
130+
def np_vecdot(x1: onp.ToJustComplexStrict1D, x2: onp.ToComplexStrict1D, /, *, axis: op.CanIndex = -1) -> npc.complexfloating: ...

0 commit comments

Comments
 (0)