@@ -64,15 +64,15 @@ def mintypecode(typechars: Iterable[str | ArrayLike], typeset: str | Container[s
6464
6565#
6666@overload
67- def real (val : _HasReal [_T ]) -> _T : ... # type: ignore[overload-overlap]
67+ def real (val : _HasReal [_T ]) -> _T : ...
6868@overload
6969def real (val : _ArrayLike [_RealT ]) -> NDArray [_RealT ]: ...
7070@overload
7171def real (val : ArrayLike ) -> NDArray [Any ]: ...
7272
7373#
7474@overload
75- def imag (val : _HasImag [_T ]) -> _T : ... # type: ignore[overload-overlap]
75+ def imag (val : _HasImag [_T ]) -> _T : ...
7676@overload
7777def imag (val : _ArrayLike [_RealT ]) -> NDArray [_RealT ]: ...
7878@overload
@@ -142,7 +142,7 @@ def nan_to_num(
142142
143143# NOTE: The [overload-overlap] mypy error is a false positive
144144@overload
145- def real_if_close (a : _ArrayLike [np .complex64 ], tol : float = 100 ) -> NDArray [np .float32 | np .complex64 ]: ... # type: ignore[overload-overlap]
145+ def real_if_close (a : _ArrayLike [np .complex64 ], tol : float = 100 ) -> NDArray [np .float32 | np .complex64 ]: ...
146146@overload
147147def real_if_close (a : _ArrayLike [np .complex128 ], tol : float = 100 ) -> NDArray [np .float64 | np .complex128 ]: ...
148148@overload
@@ -202,41 +202,41 @@ def typename(char: L["O"]) -> L["object"]: ...
202202@overload
203203def common_type () -> type [np .float16 ]: ...
204204@overload
205- def common_type (a0 : _HasDType [np .float16 ], / , * ai : _HasDType [np .float16 ]) -> type [np .float16 ]: ... # type: ignore[overload-overlap]
205+ def common_type (a0 : _HasDType [np .float16 ], / , * ai : _HasDType [np .float16 ]) -> type [np .float16 ]: ...
206206@overload
207- def common_type (a0 : _HasDType [np .float32 ], / , * ai : _HasDType [_FloatMax32 ]) -> type [np .float32 ]: ... # type: ignore[overload-overlap]
207+ def common_type (a0 : _HasDType [np .float32 ], / , * ai : _HasDType [_FloatMax32 ]) -> type [np .float32 ]: ...
208208@overload
209- def common_type ( # type: ignore[overload-overlap]
209+ def common_type (
210210 a0 : _HasDType [np .float64 | np .integer ],
211211 / ,
212212 * ai : _HasDType [_RealMax64 ],
213213) -> type [np .float64 ]: ...
214214@overload
215- def common_type ( # type: ignore[overload-overlap]
215+ def common_type (
216216 a0 : _HasDType [np .longdouble ],
217217 / ,
218218 * ai : _HasDType [_Real ],
219219) -> type [np .longdouble ]: ...
220220@overload
221- def common_type ( # type: ignore[overload-overlap]
221+ def common_type (
222222 a0 : _HasDType [np .complex64 ],
223223 / ,
224224 * ai : _HasDType [_InexactMax32 ],
225225) -> type [np .complex64 ]: ...
226226@overload
227- def common_type ( # type: ignore[overload-overlap]
227+ def common_type (
228228 a0 : _HasDType [np .complex128 ],
229229 / ,
230230 * ai : _HasDType [_NumberMax64 ],
231231) -> type [np .complex128 ]: ...
232232@overload
233- def common_type ( # type: ignore[overload-overlap]
233+ def common_type (
234234 a0 : _HasDType [np .clongdouble ],
235235 / ,
236236 * ai : _HasDType [np .number ],
237237) -> type [np .clongdouble ]: ...
238238@overload
239- def common_type ( # type: ignore[overload-overlap]
239+ def common_type (
240240 a0 : _HasDType [_FloatMax32 ],
241241 array1 : _HasDType [np .float32 ],
242242 / ,
@@ -257,7 +257,7 @@ def common_type(
257257 * ai : _HasDType [_Real ],
258258) -> type [np .longdouble ]: ...
259259@overload
260- def common_type ( # type: ignore[overload-overlap]
260+ def common_type (
261261 a0 : _HasDType [_InexactMax32 ],
262262 array1 : _HasDType [np .complex64 ],
263263 / ,
0 commit comments