-
Notifications
You must be signed in to change notification settings - Fork 3k
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
{Pylint} Fix superfluous-parens #30361
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
functionapp_def.workload_profile_name = workload_profile_name | ||
|
||
if (cpu is not None and memory is not None): | ||
if cpu is not None and memory is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pylint does not find this error, reported to pylint-dev/pylint#10084
@@ -473,7 +473,7 @@ def wait_then_open_async(url): | |||
""" | |||
Spawns a thread that waits for a bit then opens a URL. | |||
""" | |||
t = threading.Thread(target=wait_then_open, args=({url})) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ({url})
is actually a set
. This is wrong.
cbe7e00
Fix this with
ruff check . --select UP034 --fix
superfluous-parens
was disabled in #26685Ref:
https://pylint.readthedocs.io/en/stable/user_guide/messages/convention/superfluous-parens.html
https://docs.astral.sh/ruff/rules/extraneous-parentheses/
astral-sh/ruff#970