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: Unnecessary parens after 'not' keyword (superfluous-parens) false positive with walrus operator #3788

Closed
mfrancis95 opened this issue Aug 23, 2020 · 4 comments
Labels
Duplicate 🐫 Duplicate of an already existing issue Enhancement ✨ Improvement to a component

Comments

@mfrancis95
Copy link

Steps to reproduce

if not (a := 5):
    print(a)

Current behavior

C0325: Unnecessary parens after 'not' keyword (superfluous-parens).

Expected behavior

No warning.

pylint --version output

pylint 2.6.0
astroid 2.4.2
Python 3.8.2 (default, Jul 16 2020, 14:00:26) 
[GCC 9.3.0]
@AWhetter AWhetter added the Enhancement ✨ Improvement to a component label Sep 7, 2020
@AWhetter
Copy link
Contributor

AWhetter commented Sep 7, 2020

I can reproduce this on master. As far as I'm aware, we don't have very good support for walrus operators yet.

@conqp
Copy link

conqp commented Sep 16, 2020

Possible duplicate of #3249

@mfrancis95
Copy link
Author

@conqp yes.

@PCManticore PCManticore added the Duplicate 🐫 Duplicate of an already existing issue label Dec 27, 2020
@PCManticore
Copy link
Contributor

Thanks for the report @mfrancis95 Closing as a duplicate of #3249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate 🐫 Duplicate of an already existing issue Enhancement ✨ Improvement to a component
Projects
None yet
Development

No branches or pull requests

4 participants