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
The following five valid special method names produce R0201 Method could be a function warnings.
R0201 Method could be a function
class C: def __pow__(self, other, modulo): return NotImplemented def __imatmul__(self, other): return NotImplemented def __trunc__(self): return NotImplemented def __floor__(self): return NotImplemented def __ceil__(self): return NotImplemented
Of these five, __pow__ and __imatmul__ also produce W0613 Unused argument warnings.
__pow__
__imatmul__
W0613 Unused argument
As far as I can tell, there are no other special method names that are not recognized as such.
I am currently looking into fixing this myself and may send a pull request in the near future.
The text was updated successfully, but these errors were encountered:
Add missing special method names (#3282)
6d818e3
Close #3281
Successfully merging a pull request may close this issue.
The following five valid special method names produce
R0201 Method could be a function
warnings.Of these five,
__pow__
and__imatmul__
also produceW0613 Unused argument
warnings.As far as I can tell, there are no other special method names that are not recognized as such.
I am currently looking into fixing this myself and may send a pull request in the near future.
The text was updated successfully, but these errors were encountered: