Skip to content

Commit b911530

Browse files
committed
🐴 remove some # type: ignores for false positives
1 parent 9b6a738 commit b911530

File tree

7 files changed

+47
-47
lines changed

7 files changed

+47
-47
lines changed

scipy-stubs/cluster/vq.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ _AsFloat64_2D: TypeAlias = onp.ToArray2D[float, npc.floating64 | npc.integer]
1919
_PyFloatMax2D: TypeAlias = Sequence[float] | Sequence[Sequence[float]]
2020

2121
###
22-
# NOTE: DO NOT RE-ORDER THE OVERLOADS WITH a `# type: ignore`, otherwise it'll trigger a pernicious bug in pyright (1.1.403).
22+
# NOTE: DO NOT RE-ORDER THE OVERLOADS, otherwise it'll trigger a pernicious bug in pyright (1.1.403).
2323

2424
class ClusterError(Exception): ...
2525

@@ -31,7 +31,7 @@ def whiten(obs: onp.ArrayND[_InexactT], check_finite: bool | None = None) -> onp
3131

3232
#
3333
@overload # float32
34-
def vq( # type: ignore[overload-overlap]
34+
def vq(
3535
obs: onp.CanArrayND[np.float32], code_book: _ToFloat32_2D, check_finite: bool = True
3636
) -> tuple[onp.Array1D[np.int32], onp.Array1D[np.float32]]: ...
3737
@overload # float64
@@ -55,7 +55,7 @@ def py_vq(
5555

5656
#
5757
@overload # float32
58-
def kmeans( # type: ignore[overload-overlap]
58+
def kmeans(
5959
obs: onp.CanArrayND[np.float32],
6060
k_or_guess: int | _ToFloat32_2D,
6161
iter: int = 20,

scipy-stubs/ndimage/_fourier.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def _get_output_fourier(output: _OutputArrayT, input: onp.ToComplex128_ND) -> _O
3333
@overload # output: <T: scalar type>
3434
def _get_output_fourier(output: type[_OutputScalarT], input: onp.ToComplex128_ND) -> onp.ArrayND[_OutputScalarT]: ...
3535
@overload # +float32
36-
def _get_output_fourier(output: None, input: _InputF32) -> onp.ArrayND[np.float32]: ... # type: ignore[overload-overlap]
36+
def _get_output_fourier(output: None, input: _InputF32) -> onp.ArrayND[np.float32]: ...
3737
@overload # +float64
3838
def _get_output_fourier(output: None, input: _InputF64) -> onp.ArrayND[np.float64]: ...
3939
@overload # ~complex64
40-
def _get_output_fourier(output: None, input: _InputC64) -> onp.ArrayND[np.complex64]: ... # type: ignore[overload-overlap]
40+
def _get_output_fourier(output: None, input: _InputC64) -> onp.ArrayND[np.complex64]: ...
4141
@overload # ~complex128
4242
def _get_output_fourier(output: None, input: _InputC128) -> onp.ArrayND[np.complex128]: ...
4343
@overload # fallback
@@ -53,7 +53,7 @@ def _get_output_fourier_complex(
5353
output: onp.ArrayND[np.complex128] | type[np.complex128], input: onp.ToComplex128_ND
5454
) -> onp.ArrayND[np.complex128]: ...
5555
@overload # ~complex64
56-
def _get_output_fourier_complex(output: None, input: _InputC64) -> onp.ArrayND[np.complex64]: ... # type: ignore[overload-overlap]
56+
def _get_output_fourier_complex(output: None, input: _InputC64) -> onp.ArrayND[np.complex64]: ...
5757
@overload # ~complex128 | +floating
5858
def _get_output_fourier_complex(output: None, input: _InputC128 | onp.ToFloat64_ND) -> onp.ArrayND[np.complex128]: ...
5959
@overload # fallback
@@ -77,15 +77,15 @@ def fourier_gaussian(
7777
input: onp.ToComplex128_ND, sigma: _Sigma, n: CanIndex = -1, axis: int = -1, *, output: type[_OutputScalarT]
7878
) -> onp.ArrayND[_OutputScalarT]: ...
7979
@overload # +float32
80-
def fourier_gaussian( # type: ignore[overload-overlap]
80+
def fourier_gaussian(
8181
input: _InputF32, sigma: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
8282
) -> onp.ArrayND[np.float32]: ...
8383
@overload # +float64
8484
def fourier_gaussian(
8585
input: _InputF64, sigma: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
8686
) -> onp.ArrayND[np.float64]: ...
8787
@overload # ~complex64
88-
def fourier_gaussian( # type: ignore[overload-overlap]
88+
def fourier_gaussian(
8989
input: _InputC64, sigma: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
9090
) -> onp.ArrayND[np.complex64]: ...
9191
@overload # ~complex128
@@ -113,15 +113,15 @@ def fourier_uniform(
113113
input: onp.ToComplex128_ND, size: _Sigma, n: CanIndex = -1, axis: int = -1, *, output: type[_OutputScalarT]
114114
) -> onp.ArrayND[_OutputScalarT]: ...
115115
@overload # +float32
116-
def fourier_uniform( # type: ignore[overload-overlap]
116+
def fourier_uniform(
117117
input: _InputF32, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
118118
) -> onp.ArrayND[np.float32]: ...
119119
@overload # +float64
120120
def fourier_uniform(
121121
input: _InputF64, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
122122
) -> onp.ArrayND[np.float64]: ...
123123
@overload # ~complex64
124-
def fourier_uniform( # type: ignore[overload-overlap]
124+
def fourier_uniform(
125125
input: _InputC64, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
126126
) -> onp.ArrayND[np.complex64]: ...
127127
@overload # ~complex128
@@ -151,15 +151,15 @@ def fourier_ellipsoid(
151151
input: onp.ToComplex128_ND, size: _Sigma, n: CanIndex = -1, axis: int = -1, *, output: type[_OutputScalarT]
152152
) -> onp.ArrayND[_OutputScalarT]: ...
153153
@overload # +float32
154-
def fourier_ellipsoid( # type: ignore[overload-overlap]
154+
def fourier_ellipsoid(
155155
input: _InputF32, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
156156
) -> onp.ArrayND[np.float32]: ...
157157
@overload # +float64
158158
def fourier_ellipsoid(
159159
input: _InputF64, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
160160
) -> onp.ArrayND[np.float64]: ...
161161
@overload # ~complex64
162-
def fourier_ellipsoid( # type: ignore[overload-overlap]
162+
def fourier_ellipsoid(
163163
input: _InputC64, size: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
164164
) -> onp.ArrayND[np.complex64]: ...
165165
@overload # ~complex128
@@ -189,7 +189,7 @@ def fourier_shift(
189189
input: onp.ToComplex128_ND, shift: _Sigma, n: CanIndex = -1, axis: int = -1, *, output: type[_OutputScalarComplexT]
190190
) -> onp.ArrayND[_OutputScalarComplexT]: ...
191191
@overload # ~complex64
192-
def fourier_shift( # type: ignore[overload-overlap]
192+
def fourier_shift(
193193
input: _InputC64, shift: _Sigma, n: CanIndex = -1, axis: int = -1, output: None = None
194194
) -> onp.ArrayND[np.complex64]: ...
195195
@overload # ~complex128 | +floating

scipy-stubs/sparse/csgraph/_min_spanning_tree.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DTYPE: Final[type[np.float64]] = ...
1717
ITYPE: Final[type[np.int32]] = ...
1818

1919
@overload
20-
def minimum_spanning_tree(csgraph: _Graph[_RealT], overwrite: bool = False) -> csr_array[_RealT, tuple[int, int]]: ... # type: ignore[overload-overlap]
20+
def minimum_spanning_tree(csgraph: _Graph[_RealT], overwrite: bool = False) -> csr_array[_RealT, tuple[int, int]]: ...
2121
@overload
2222
def minimum_spanning_tree(csgraph: onp.ToJustInt2D, overwrite: bool = False) -> csr_array[np.int_, tuple[int, int]]: ...
2323
@overload

scipy-stubs/special/_logsumexp.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def logsumexp(
236236

237237
# NOTE: keep in sync with `log_softmax`
238238
@overload # T
239-
def softmax(x: _InexactOrArrayT, axis: AnyShape | None = None) -> _InexactOrArrayT: ... # type: ignore[overload-overlap]
239+
def softmax(x: _InexactOrArrayT, axis: AnyShape | None = None) -> _InexactOrArrayT: ...
240240
@overload # 0d +float64
241241
def softmax(x: onp.ToInt | onp.ToJustFloat64, axis: AnyShape | None = None) -> np.float64: ...
242242
@overload # 0d ~complex128
@@ -258,7 +258,7 @@ def softmax(x: onp.ToComplexND, axis: AnyShape | None = None) -> onp.ArrayND[np.
258258

259259
# NOTE: keep in sync with `softmax`
260260
@overload # T
261-
def log_softmax(x: _InexactOrArrayT, axis: AnyShape | None = None) -> _InexactOrArrayT: ... # type: ignore[overload-overlap]
261+
def log_softmax(x: _InexactOrArrayT, axis: AnyShape | None = None) -> _InexactOrArrayT: ...
262262
@overload # 0d +float64
263263
def log_softmax(x: onp.ToInt | onp.ToJustFloat64, axis: AnyShape | None = None) -> np.float64: ...
264264
@overload # 0d ~complex128

scipy-stubs/special/_ufuncs.pyi

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ class _UFunc11f(_UFunc11[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
773773
@overload
774774
def __call__(self, x: _ToSubFloatND, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float64ND: ...
775775
@overload
776-
def __call__(self, x: _Float_DT, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ... # type: ignore[overload-overlap]
776+
def __call__(self, x: _Float_DT, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ...
777777
@overload
778778
def __call__(self, x: onp.ToFloat64_ND, /, out: _Out1 = None, **kw: Unpack[_Kw11f]) -> _FloatND: ...
779779
@overload
@@ -874,7 +874,7 @@ class _UFunc12f(_UFunc12[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
874874
@overload
875875
def __call__(self, x: _ToSubFloat, /, out: _None2 = ..., **kw: Unpack[_Kw12f]) -> _Tuple2[_Float]: ...
876876
@overload
877-
def __call__(self, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ... # type: ignore[overload-overlap]
877+
def __call__(self, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ...
878878
@overload
879879
def __call__(self, x: onp.ToFloat64_ND, /, out: _None2 = ..., **kw: Unpack[_Kw12f]) -> _Tuple2[_FloatND]: ...
880880
@overload
@@ -942,7 +942,7 @@ class _UFunc14f(_UFunc14[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
942942
@overload
943943
def __call__(self, x: _ToSubFloat, /, out: _None4 = ..., **kw: Unpack[_Kw14f]) -> _Tuple4[_Float]: ...
944944
@overload
945-
def __call__(self, x: _Float_DT, /, out: _None4 = ..., **kw: Unpack[_KwBase]) -> _Tuple4[_Float_DT]: ... # type: ignore[overload-overlap]
945+
def __call__(self, x: _Float_DT, /, out: _None4 = ..., **kw: Unpack[_KwBase]) -> _Tuple4[_Float_DT]: ...
946946
@overload
947947
def __call__(self, x: onp.ToFloat64_ND, /, out: _None4 = ..., **kw: Unpack[_Kw14f]) -> _Tuple4[_FloatND]: ...
948948
@overload
@@ -1052,9 +1052,9 @@ class _UFunc21f(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
10521052
@overload
10531053
def __call__(self, a: _ToSubFloat, b: _ToSubFloat, /, out: _Out1 = None, **kw: Unpack[_Kw21f]) -> _Float: ...
10541054
@overload
1055-
def __call__(self, a: _Float_DT, b: _Float_DT | _ToFloat32, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ... # type: ignore[overload-overlap]
1055+
def __call__(self, a: _Float_DT, b: _Float_DT | _ToFloat32, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ...
10561056
@overload
1057-
def __call__(self, a: _Float_DT | _ToFloat32, b: _Float_DT, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ... # type: ignore[overload-overlap]
1057+
def __call__(self, a: _Float_DT | _ToFloat32, b: _Float_DT, /, out: _Out1 = None, **kw: Unpack[_KwBase]) -> _Float_DT: ...
10581058
@overload
10591059
def __call__(self, a: onp.ToFloat64_ND, b: _ToFloat64OrND, /, out: _Out1 = None, **kw: Unpack[_Kw21f]) -> _FloatND: ...
10601060
@overload
@@ -1516,9 +1516,9 @@ class _UFunc22f(_UFunc22[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
15161516
@overload
15171517
def __call__(self, v: _ToSubFloat, x: _ToSubFloat, /, out: _None2 = ..., **kw: Unpack[_Kw22f]) -> _Tuple2[_Float]: ...
15181518
@overload
1519-
def __call__(self, v: _ToFloat32, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ... # type: ignore[overload-overlap]
1519+
def __call__(self, v: _ToFloat32, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ...
15201520
@overload
1521-
def __call__(self, v: _Float_DT, x: _ToFloat32, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ... # type: ignore[overload-overlap]
1521+
def __call__(self, v: _Float_DT, x: _ToFloat32, /, out: _None2 = ..., **kw: Unpack[_KwBase]) -> _Tuple2[_Float_DT]: ...
15221522
@overload
15231523
def __call__(
15241524
self, v: onp.ToFloat64_ND, x: onp.ToFloat64_ND, /, out: _None2 = ..., **kw: Unpack[_Kw22f]
@@ -1569,11 +1569,11 @@ class _UFunc24f(_UFunc24[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
15691569
@overload
15701570
def __call__(self, u: _ToSubFloat, m: _ToSubFloat, /, out: _None4 = ..., **kw: Unpack[_Kw24f]) -> _Tuple4[_Float]: ...
15711571
@overload
1572-
def __call__( # type: ignore[overload-overlap]
1572+
def __call__(
15731573
self, u: _Float_DT | _ToFloat32, m: _Float_DT, /, out: _None4 = ..., **kw: Unpack[_KwBase]
15741574
) -> _Tuple4[_Float_DT]: ...
15751575
@overload
1576-
def __call__( # type: ignore[overload-overlap]
1576+
def __call__(
15771577
self, u: _Float_DT, m: _Float_DT | _ToFloat32, /, out: _None4 = ..., **kw: Unpack[_KwBase]
15781578
) -> _Tuple4[_Float_DT]: ...
15791579
@overload
@@ -1629,15 +1629,15 @@ class _UFunc31f(_UFunc31[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
16291629
@overload
16301630
def __call__(self, a: _ToSubFloat, b: _ToSubFloat, x: _ToSubFloat, /, out: _Out1 = None, **kw: Unpack[_Kw31f]) -> _Float: ...
16311631
@overload
1632-
def __call__( # type: ignore[overload-overlap]
1632+
def __call__(
16331633
self, a: onp.ToFloat64, b: onp.ToFloat64, x: _Float_DT, /, out: _Out1 = None, **kw: Unpack[_KwBase]
16341634
) -> _Float_DT: ...
16351635
@overload
1636-
def __call__( # type: ignore[overload-overlap]
1636+
def __call__(
16371637
self, a: onp.ToFloat64, b: _Float_DT, x: onp.ToFloat64, /, out: _Out1 = None, **kw: Unpack[_KwBase]
16381638
) -> _Float_DT: ...
16391639
@overload
1640-
def __call__( # type: ignore[overload-overlap]
1640+
def __call__(
16411641
self, a: _Float_DT, b: onp.ToFloat64, x: onp.ToFloat64, /, out: _Out1 = None, **kw: Unpack[_KwBase]
16421642
) -> _Float_DT: ...
16431643
@overload
@@ -1814,15 +1814,15 @@ class _UFunc32f(_UFunc32[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
18141814
self, m: _ToSubFloat, q: _ToSubFloat, x: _ToSubFloat, /, out: _None2 = ..., **kw: Unpack[_Kw32f]
18151815
) -> _Tuple2[_Float]: ...
18161816
@overload
1817-
def __call__( # type: ignore[overload-overlap]
1817+
def __call__(
18181818
self, m: _Float_DT | _ToFloat32, q: _Float_DT | _ToFloat32, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_KwBase]
18191819
) -> _Tuple2[_Float_DT]: ...
18201820
@overload
1821-
def __call__( # type: ignore[overload-overlap]
1821+
def __call__(
18221822
self, m: _Float_DT | _ToFloat32, q: _Float_DT, x: _Float_DT | _ToFloat32, /, out: _None2 = ..., **kw: Unpack[_KwBase]
18231823
) -> _Tuple2[_Float_DT]: ...
18241824
@overload
1825-
def __call__( # type: ignore[overload-overlap]
1825+
def __call__(
18261826
self, m: _Float_DT, q: _Float_DT | _ToFloat32, x: _Float_DT | _ToFloat32, /, out: _None2 = ..., **kw: Unpack[_KwBase]
18271827
) -> _Tuple2[_Float_DT]: ...
18281828
@overload
@@ -1861,7 +1861,7 @@ class _UFunc41f(_UFunc41[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
18611861
self, dfn: _ToSubFloat, dfd: _ToSubFloat, nc: _ToSubFloat, f: _ToSubFloat, /, out: _Out1 = None, **kw: Unpack[_Kw41f]
18621862
) -> _Float: ...
18631863
@overload
1864-
def __call__( # type: ignore[overload-overlap]
1864+
def __call__(
18651865
self,
18661866
dfn: _Float_DT | _ToFloat32,
18671867
dfd: _Float_DT | _ToFloat32,
@@ -1872,7 +1872,7 @@ class _UFunc41f(_UFunc41[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
18721872
**kw: Unpack[_KwBase],
18731873
) -> _Float_DT: ...
18741874
@overload
1875-
def __call__( # type: ignore[overload-overlap]
1875+
def __call__(
18761876
self,
18771877
dfn: _Float_DT | _ToFloat32,
18781878
dfd: _Float_DT | _ToFloat32,
@@ -1883,7 +1883,7 @@ class _UFunc41f(_UFunc41[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
18831883
**kw: Unpack[_KwBase],
18841884
) -> _Float_DT: ...
18851885
@overload
1886-
def __call__( # type: ignore[overload-overlap]
1886+
def __call__(
18871887
self,
18881888
dfn: _Float_DT | _ToFloat32,
18891889
dfd: _Float_DT,
@@ -1894,7 +1894,7 @@ class _UFunc41f(_UFunc41[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
18941894
**kw: Unpack[_KwBase],
18951895
) -> _Float_DT: ...
18961896
@overload
1897-
def __call__( # type: ignore[overload-overlap]
1897+
def __call__(
18981898
self,
18991899
dfn: _Float_DT,
19001900
dfd: _Float_DT | _ToFloat32,
@@ -2376,19 +2376,19 @@ class _UFunc42f(_UFunc42[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
23762376
self, m: _ToSubFloat, n: _ToSubFloat, c: _ToSubFloat, x: _ToSubFloat, /, out: _None2 = ..., **kw: Unpack[_Kw42f]
23772377
) -> _Float: ...
23782378
@overload
2379-
def __call__( # type: ignore[overload-overlap]
2379+
def __call__(
23802380
self, m: onp.ToFloat64, n: onp.ToFloat64, c: onp.ToFloat64, x: _Float_DT, /, out: _None2 = ..., **kw: Unpack[_Kw42f]
23812381
) -> _Float_DT: ...
23822382
@overload
2383-
def __call__( # type: ignore[overload-overlap]
2383+
def __call__(
23842384
self, m: onp.ToFloat64, n: onp.ToFloat64, c: _Float_DT, x: onp.ToFloat64, /, out: _None2 = ..., **kw: Unpack[_Kw42f]
23852385
) -> _Float_DT: ...
23862386
@overload
2387-
def __call__( # type: ignore[overload-overlap]
2387+
def __call__(
23882388
self, m: onp.ToFloat64, n: _Float_DT, c: onp.ToFloat64, x: onp.ToFloat64, /, out: _None2 = ..., **kw: Unpack[_Kw42f]
23892389
) -> _Float_DT: ...
23902390
@overload
2391-
def __call__( # type: ignore[overload-overlap]
2391+
def __call__(
23922392
self, m: _Float_DT, n: onp.ToFloat64, c: onp.ToFloat64, x: onp.ToFloat64, /, out: _None2 = ..., **kw: Unpack[_Kw42f]
23932393
) -> _Float_DT: ...
23942394
@overload
@@ -2482,7 +2482,7 @@ class _UFunc52f(_UFunc52[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
24822482
**kw: Unpack[_Kw52f],
24832483
) -> _Float: ...
24842484
@overload
2485-
def __call__( # type: ignore[overload-overlap]
2485+
def __call__(
24862486
self,
24872487
m: onp.ToFloat64,
24882488
n: onp.ToFloat64,
@@ -2494,7 +2494,7 @@ class _UFunc52f(_UFunc52[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
24942494
**kw: Unpack[_Kw52f],
24952495
) -> _Float_DT: ...
24962496
@overload
2497-
def __call__( # type: ignore[overload-overlap]
2497+
def __call__(
24982498
self,
24992499
m: onp.ToFloat64,
25002500
n: onp.ToFloat64,
@@ -2506,7 +2506,7 @@ class _UFunc52f(_UFunc52[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
25062506
**kw: Unpack[_Kw52f],
25072507
) -> _Float_DT: ...
25082508
@overload
2509-
def __call__( # type: ignore[overload-overlap]
2509+
def __call__(
25102510
self,
25112511
m: onp.ToFloat64,
25122512
n: onp.ToFloat64,
@@ -2518,7 +2518,7 @@ class _UFunc52f(_UFunc52[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
25182518
**kw: Unpack[_Kw52f],
25192519
) -> _Float_DT: ...
25202520
@overload
2521-
def __call__( # type: ignore[overload-overlap]
2521+
def __call__(
25222522
self,
25232523
m: onp.ToFloat64,
25242524
n: _Float_DT,
@@ -2530,7 +2530,7 @@ class _UFunc52f(_UFunc52[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
25302530
**kw: Unpack[_Kw52f],
25312531
) -> _Float_DT: ...
25322532
@overload
2533-
def __call__( # type: ignore[overload-overlap]
2533+
def __call__(
25342534
self,
25352535
m: _Float_DT,
25362536
n: onp.ToFloat64,

scipy-stubs/stats/_morestats.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def boxcox_llf( # type: ignore[overload-overlap]
405405
nan_policy: NanPolicy = "propagate",
406406
) -> _InexactT: ...
407407
@overload
408-
def boxcox_llf( # type: ignore[overload-overlap]
408+
def boxcox_llf(
409409
lmb: float | onp.ToInt | _InexactT,
410410
data: onp.CanArrayND[_InexactT] | Sequence[_InexactT],
411411
*,

scipy-stubs/stats/_quantile.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ _QuantileMethod: TypeAlias = Literal[
2020

2121
###
2222

23-
@overload # this mypy error is a false positive
24-
def quantile( # type: ignore[overload-overlap]
23+
@overload
24+
def quantile(
2525
x: onp.ToFloatStrict1D,
2626
p: onp.ToJustFloat,
2727
*,

0 commit comments

Comments
 (0)