-
-
Notifications
You must be signed in to change notification settings - Fork 46k
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
refactor: Move constants outside of variable scope #7262
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Did you use some tool to find these instances? Oh, nevermind... I see |
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
If I have closed any failing PRs that you want to keep open, please reopen them or ask me to do so.
|
for more information, see https://pre-commit.ci
Your thoughts on using https://docs.python.org/3/library/typing.html#typing.Final for constant values? |
I think enforcing this will be quite difficult for not much benefit. What is your opinion on #7337? |
Describe your change:
Moves constants outside of variable scope, removing the need for
noqa: N806
Checklist:
Fixes: #{$ISSUE_NO}
.