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
I found while writing a ufunc that takes structured dtypes for its inputs that casting of essentially everything is allowed to a structured dtype, which is surprising. This is reflected in can_cast:
I would have expected, at least for safe, that casting would only be allowed if the dtypes were the same (or, perhaps, that can_cast was applied recursively).
The text was updated successfully, but these errors were encountered:
I found while writing a ufunc that takes structured dtypes for its inputs that casting of essentially everything is allowed to a structured dtype, which is surprising. This is reflected in
can_cast
:I would have expected, at least for
safe
, that casting would only be allowed if the dtypes were the same (or, perhaps, thatcan_cast
was applied recursively).The text was updated successfully, but these errors were encountered: