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
Right now, there is code using len() on variables hinted as such types. However, this is not correct with the current implementation of hints due to the lack of Sized.
I believe they should be slightly changed like this, such that the type correctly marks the existence of __len__(self) -> int
Right now, there is code using
len()
on variables hinted as such types. However, this is not correct with the current implementation of hints due to the lack ofSized
.I believe they should be slightly changed like this, such that the type correctly marks the existence of
__len__(self) -> int
But im not sure about this syntax, as im not a typing expert, would love some feedback before raising a PR. Thanks in advance :)
The text was updated successfully, but these errors were encountered: