Skip to content
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

C0325 superfluous-parens after not keyword for assignment expressions #3278

Closed
da-dada opened this issue Nov 28, 2019 · 0 comments · Fixed by #3697
Closed

C0325 superfluous-parens after not keyword for assignment expressions #3278

da-dada opened this issue Nov 28, 2019 · 0 comments · Fixed by #3697
Labels
Bug 🪲 formatting Minor 💅 Polishing pylint is always nice

Comments

@da-dada
Copy link

da-dada commented Nov 28, 2019

example if not (row := self.cur.fetchone()):
see PEP 572
The := operator groups more tightly than a comma in all syntactic positions where it is legal, but less tightly than all other operators, including or, and, not, and conditional expressions (A if C else B).

@PCManticore PCManticore added Bug 🪲 Minor 💅 Polishing pylint is always nice formatting labels Nov 29, 2019
@PCManticore PCManticore changed the title C0325 superfluous-parens after n o t keyword (Assignment expressions) C0325 superfluous-parens after not keyword for assignment expressions Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🪲 formatting Minor 💅 Polishing pylint is always nice
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants