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
Trying to annotate a class inheriting from both a sequence and an items view will raise an error, although I believe both definitions are compatible in the following case:
Fixes#5973
The fix is straightforward, I just copy a bit of logic (bind self and map type) from normal override check
to the multiple inheritance one (I also factored it out in a small method to avoid duplication).
Using this opportunity I also added/expanded some docstrings.
Hi there !
Trying to annotate a class inheriting from both a sequence and an items view will raise an error, although I believe both definitions are compatible in the following case:
This example raises:
although, for the two base classes, I believe
__iter__
to be defined asIterator[Tuple[K, V]]
.The text was updated successfully, but these errors were encountered: