-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
superfluous-parens wrongly detected with walrus operator in list comprehensions #3383
Labels
Comments
Thanks for the report! |
PCManticore
changed the title
superfluous-parens wrongly detected with walruns operator in list comprehensions
superfluous-parens wrongly detected with walrus operator in list comprehensions
Feb 4, 2020
I most often encounter this with negated conditions: if not (two_is_odd := is_odd(2)):
# Handle two not being odd (In this case of course it could be fixed by moving |
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
2 tasks
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 16, 2020
brycepg
added a commit
to brycepg/pylint
that referenced
this issue
Jun 17, 2020
PCManticore
pushed a commit
that referenced
this issue
Jun 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to reproduce
Current behavior
Expected behavior
This should not complain about the parenthesis because without it the syntax is invalid when using the walrus
:=
operatorpylint --version output
The text was updated successfully, but these errors were encountered: