Checker for unguarded-next-called-without-default
for next
called without catching StopIteration
and without default value in python 3.7+
#4725
Labels
Checkers
Related to a checker
Enhancement ✨
Improvement to a component
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Work in progress
Is your feature request related to a problem? Please describe
StopIteration exceptions raised directly or indirectly in coroutines
and generators are transformed into RuntimeError exceptions for python
3.7+.
Additional context
We missed one
next
in astroid when doing pylint-dev/astroid#1081 and it resulted in the avoidable #4723 in astroid2.6.3
The text was updated successfully, but these errors were encountered: