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
from typing import overload class Cls: @overload def method(self, param: int) -> None: ... @overload def method(self, param: str) -> None: ... def method(self, param): print(self.__repr__, param)
test1.py:6: [R0201(no-self-use), Cls.method] Method could be a function test1.py:10: [R0201(no-self-use), Cls.method] Method could be a function
This is on the preview release 2.4.4 pip install pylint astroid --pre -U
pip install pylint astroid --pre -U
A quick search for "overload" doesn't result in duplicate issues.
(venv) $ pylint --version pylint 2.4.4 astroid 2.3.3 Python 3.7.6 (default, Jan 30 2020, 09:44:41) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]
The text was updated successfully, but these errors were encountered:
e964c89
No branches or pull requests
This is on the preview release 2.4.4
pip install pylint astroid --pre -U
A quick search for "overload" doesn't result in duplicate issues.
pylint --version output
The text was updated successfully, but these errors were encountered: