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 just found this library and I was excited until I read this in the manuals.
Can MyPy do the instance checking?
Because of the dynamic nature of numpy and pandas, this is currently not possible. The checking done by MyPy is limited to detecting whether or not a numpy or pandas type is provided when that is hinted. There are no static checks on shapes, structures or types.
Which begs the question, what's the point of providing all the types? Is it just for the reader? (in which case this is only a little bit better than a comment)
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
-
I just found this library and I was excited until I read this in the manuals.
Which begs the question, what's the point of providing all the types? Is it just for the reader? (in which case this is only a little bit better than a comment)
Or, am I missing something else?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions