-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
New rule: don't return
inside a nursery, nor break
or continue
an outer loop
#261
Comments
Per python-trio/trio#1493 (comment), let's do it! I also like linting against |
return
a value inside a nursery?return
inside a nursery, nor break
or continue
an outer loop
This also applies to I don't think it applies to |
I think this is still fairly hazardous:
The return value won't get lost per se, but one does tend to expect a return statement to result in the caller being resumed promptly. Here nothing happens until |
See python-trio/trio#1493 - I'm not sure whether this is a good idea for a lint rule, but wanted to track it so I can decide later.
The text was updated successfully, but these errors were encountered: