We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code redefines global objects and should be reported as such:
foo = 10 def f(x): return x + foo foo = 100 def f(x): return x - foo
It would be nice to get a warning like
line 4: global variable `foo` redefined (defined in line 1) line 5: global function `f` redefined (defined in line 2)
We already have redefined-outer-name but it only warns when a global name is redefined locally, not globally.
redefined-outer-name
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current problem
The following code redefines global objects and should be reported as such:
Desired solution
It would be nice to get a warning like
Additional context
We already have
redefined-outer-name
but it only warns when a global name is redefined locally, not globally.The text was updated successfully, but these errors were encountered: