-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
False positive: multiple-statements
(C0321
) should not trigger for stub functions
#7860
Comments
I think the warning is correct as is. Same rational for raising the warning on Is there a PEP that says otherwise? |
Currently, functions decorated with |
PEP 8 doesn't say it specifically, but in other recommendations it does put |
Are you importing abstractmethod from abc? I think it works already. Update: Whoops ignore that 👓 |
Not working both for |
It does work for |
I think its common-enough to have this pattern on the same line; but let's wait a bit for more feedback from maintainers. |
We could try a vote to make it easier: 🚀 for false-positive (we will remove the message when ellipsis is on the same line) |
It should be as easy as replacing this with |
I think you are good to go @GideonBear 😀 |
Bug description
For example:
...
is technically a statement, but shouldn't be considered one.If accepted, I would be interested in submitting a PR for this.
Configuration
No response
Command used
Pylint output
Expected behavior
No error
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: