-
Notifications
You must be signed in to change notification settings - Fork 186
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 N805 on overriden __new__ method #3
Comments
I suspect this also happens with |
This is a valid issuse, So in case of
I don't think so, the checker tries to detect |
For There's also And a quick search on Google: https://www.google.com/search?q=%22def+__prepare__%22&nfpr=1 |
Looking at |
@stephan-hof Any plans for a release of the changes reflected in this PR? |
Description
Overriden new methods are always static methods and their first parameter should not be named self, but pep8-naming prints an error when it is not self.
How to replicate:
$ flake8 new_override.py new_override.py:2:9: N805 first argument of a method should be named 'self'
The text was updated successfully, but these errors were encountered: