Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checker for unguarded-next-called-without-default for next called without catching StopIteration and without default value in python 3.7+ #4725

Open
Pierre-Sassoulas opened this issue Jul 19, 2021 · 0 comments · May be fixed by #6987
Assignees
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

Comments

@Pierre-Sassoulas
Copy link
Member

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 astroid 2.6.3

@Pierre-Sassoulas Pierre-Sassoulas added Enhancement ✨ Improvement to a component Checkers Related to a checker labels Jul 19, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title Checker for unguarded-next-called for next called without catching StopIteration Checker for unguarded-next-called for next called without catching StopIteration and without default value Jul 19, 2021
@Pierre-Sassoulas Pierre-Sassoulas changed the title Checker for unguarded-next-called for next called without catching StopIteration and without default value Checker for unguarded-next-called-without-default for next called without catching StopIteration and without default value in python 3.7+ Jul 20, 2021
@DanielNoord DanielNoord self-assigned this Jun 20, 2022
@DanielNoord DanielNoord added this to the 2.15.0 milestone Jun 20, 2022
@DanielNoord DanielNoord linked a pull request Jun 20, 2022 that will close this issue
3 tasks
@DanielNoord DanielNoord removed this from the 2.15.0 milestone Aug 23, 2022
@Pierre-Sassoulas Pierre-Sassoulas added Work in progress Needs astroid update Needs an astroid update (probably a release too) before being mergable labels Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants