We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple code gives false warning:
def f(): return (base or dist_name) in ("Debian", "Ubuntu")
As you can see, there are no braces around the return value, but I still get superfluous-parens Unnecessary parens after 'return' keyword
superfluous-parens Unnecessary parens after 'return' keyword
Default config too.
pylint test.py
nuitka/utils/Utils.py:107 C0325 superfluous-parens Unnecessary parens after 'return' keyword
Should detect the parens usage properly.
pylint 2.12.1 astroid 2.9.0 Python 3.9.2 (default, Feb 28 2021, 17:03:44)
Debian Bullseye, but pip installed pylint
Nothing
The text was updated successfully, but these errors were encountered:
superfluous-parens
is not
return (a or b) in iterable
jacobtylerwalls
Successfully merging a pull request may close this issue.
Bug description
Simple code gives false warning:
As you can see, there are no braces around the return value, but I still get
superfluous-parens Unnecessary parens after 'return' keyword
Configuration
Command used
Pylint output
nuitka/utils/Utils.py:107 C0325 superfluous-parens Unnecessary parens after 'return' keyword
Expected behavior
Should detect the parens usage properly.
Pylint version
OS / Environment
Debian Bullseye, but pip installed pylint
Additional dependencies
Nothing
The text was updated successfully, but these errors were encountered: