You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create class with some method with any mandatory field, e.g. 'error_message'
create some function with one argument accepted with type of that class created above
inside that function just call the class method of the passed object with no arguments
Run pylint vs the code above
Expected Result
E1120: No value for argument 'error_message' in method call (no-value-for-parameter)
Actual Result
Nothing is reported, and this is pretty common situation
Sample that is required to work but it is not:
classReport:
defadd_error(self, error_message: str):
print(self, error_message)
defmain(report: Report):
report.add_error() # here we should pass printable value, but# forgot about it, pycharm will remind us, but not pylint...
Currently working:
classReport:
defadd_error(self, error_message: str):
print(self, error_message)
report=Report()
report.add_error() # outside the function this code will cause pylint violations
Command used
pylint test.py
Pylint output
empty
Expected behavior
E1120: No value for argument 'error_message' in method call (no-value-for-parameter)
Pylint version
pylint 2.11.1
OS / Environment
MacOS BigSur 11.6
The text was updated successfully, but these errors were encountered:
Bug description
Expected Result
E1120: No value for argument 'error_message' in method call (no-value-for-parameter)
Actual Result
Nothing is reported, and this is pretty common situation
Sample that is required to work but it is not:
Currently working:
Command used
Pylint output
Expected behavior
E1120: No value for argument 'error_message' in method call (no-value-for-parameter)
Pylint version
OS / Environment
MacOS BigSur 11.6
The text was updated successfully, but these errors were encountered: