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
The __iter__ method in MultiCallIterator is a generator, using the yield statement to produce results. As such it should simply return in the end, not raise any exception. Just remove the raise StopIteration line to correct this bug.
In addition, the entire method is unnecessary, as iter() can derive it from __len__ and __getitem__.
The text was updated successfully, but these errors were encountered:
The
__iter__
method inMultiCallIterator
is a generator, using theyield
statement to produce results. As such it should simply return in the end, not raise any exception. Just remove theraise StopIteration
line to correct this bug.In addition, the entire method is unnecessary, as
iter()
can derive it from__len__
and__getitem__
.The text was updated successfully, but these errors were encountered: