You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, mypy does not allow users to define __array_finalize__, since the super class (ndarray) does not have an argument. So the following error is produced:
BvB93
changed the title
TYPING: incorrect array_finalize definition in ndarray for subclassing
TYP: incorrect array_finalize definition in ndarray for subclassing
Jan 7, 2022
numpy/numpy/__init__.pyi
Lines 1505 to 1506 in 4adc87d
Currently, mypy does not allow users to define
__array_finalize__
, since the super class (ndarray) does not have an argument. So the following error is produced:This type stub should have a
obj: Any
argument.The text was updated successfully, but these errors were encountered: