-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Document that variable needs to be read for --allow-redefinition to work #6963
Comments
I didn't get the issue can you tell in brief. |
There look like there are other constraints that should be added where this is documented. Some quick examples is in a try/catch block, if a function is defined in the same scope #10016, and probably others can be pulled from https://github.com/python/mypy/blob/master/mypy/renaming.py |
Current documentation says:
Can we close this? @AlexWaygood |
Yup, fixed by @KotlinIsland in #11951! 🥳 |
See #6959.
Part of the motivation is that this shouldn't trigger redefinition:
The text was updated successfully, but these errors were encountered: