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
When passing an incompatible numpy array to a function that accepts ndarray, the error message shows the spec of the expected array, but only the type name of the input array. Here is a simple example:
TypeError: print(): incompatible function arguments. The following argument types are supported:
1. print(arg: ndarray[dtype=int32, shape=(*)], /) -> None
Invoked with types: ndarray
It would be so much more helpful if the the error message contains the spec of the input array. It would be even better if it could highlight the parts that are incompatible (e.g. dtype, shape). But either way it would be much easier to tell what the incompatibility is.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When passing an incompatible numpy array to a function that accepts ndarray, the error message shows the spec of the expected array, but only the type name of the input array. Here is a simple example:
It would be so much more helpful if the the error message contains the spec of the input array. It would be even better if it could highlight the parts that are incompatible (e.g. dtype, shape). But either way it would be much easier to tell what the incompatibility is.
Beta Was this translation helpful? Give feedback.
All reactions