Skip to content

Commit 8b83486

Browse files
committed
TYP: remove type annotation
1 parent c43ce3b commit 8b83486

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pandas/core/arraylike.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,16 @@ def _maybe_fallback(ufunc: Callable, method: str, *inputs: Any, **kwargs: Any):
228228
return NotImplemented
229229

230230

231-
def array_ufunc(self, ufunc: np.ufunc, method: str, *inputs: Any, **kwargs: Any):
231+
def array_ufunc(self, ufunc, method: str, *inputs: Any, **kwargs: Any):
232232
"""
233233
Compatibility with numpy ufuncs.
234234
235+
Note
236+
----
237+
``ufunc`` should be of type ``np.ufunc``, but the typing is removed here
238+
because for now ``np.ufunc`` resolves to ``Any``.
239+
Consider adding the annotation when numpy types are implemented.
240+
235241
See also
236242
--------
237243
numpy.org/doc/stable/reference/arrays.classes.html#numpy.class.__array_ufunc__

0 commit comments

Comments
 (0)