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
In #1234 , MyPy missed that the a type was incorrect despite the object being passed to typed functions. Specifically, next_epoch was cast to a Shard type and passed into get_compact_committees_root which is typed to accept an Epoch.
Does anyone know why? (Particularly someone who understands Python typing better than I).
The text was updated successfully, but these errors were encountered:
I see, that makes a lot of sense. I don't really have an issue with it, I just think it partially defeats the purpose of static typing if we bypass such checks. I will look deeper into this and develop propper feelings one way or another post ❄️❄️❄️.
In #1234 , MyPy missed that the a type was incorrect despite the object being passed to typed functions. Specifically,
next_epoch
was cast to aShard
type and passed intoget_compact_committees_root
which is typed to accept anEpoch
.Does anyone know why? (Particularly someone who understands Python typing better than I).
The text was updated successfully, but these errors were encountered: