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
If the callable raises StopIteration (StopAsyncIteration in aiter()) which
does not match stop_exception, the consumer would mistake it for the end of
the iteration, or, in the asynchronous case, for the result of the await.
Replace it with RuntimeError, as PEP 479 and PEP 525 do for generators.
StopIteration is therefore no longer special: it stops the iteration only
because it is the default stop_exception.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments