Skip to content

Commit e348d6d

Browse files
authored
♻️ explicit onp.AnyFloat64DType | None (#735)
2 parents ac6cf3f + a903137 commit e348d6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scipy-stubs/ndimage/_measurements.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def labeled_comprehension(
8888
labels: onp.ToComplex | onp.ToComplexND | None,
8989
index: onp.ToInt | onp.ToIntND | None,
9090
func: _ComprehensionFunc,
91-
out_dtype: onp.AnyFloat64DType,
91+
out_dtype: onp.AnyFloat64DType | None,
9292
default: onp.ToFloat,
9393
pass_positions: bool = False,
9494
) -> onp.ArrayND[np.float64]: ...

scipy-stubs/stats/_stats.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def gaussian_kernel_estimate(
111111
values: onp.Array2D[_Real],
112112
xi: onp.Array2D[_AsReal],
113113
cho_cov: onp.Array2D[_AsReal],
114-
dtype: onp.AnyFloat64DType,
114+
dtype: onp.AnyFloat64DType | None,
115115
_: _Real | float = 0.0,
116116
) -> onp.Array2D[np.float64]: ...
117117
@overload
@@ -140,7 +140,7 @@ def gaussian_kernel_estimate_log(
140140
values: onp.Array2D[_Real],
141141
xi: onp.Array2D[_AsReal],
142142
cho_cov: onp.Array2D[_AsReal],
143-
dtype: onp.AnyFloat64DType,
143+
dtype: onp.AnyFloat64DType | None,
144144
_: _Real | float = 0.0,
145145
) -> onp.Array2D[np.float64]: ...
146146
@overload

0 commit comments

Comments
 (0)