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
$ pylint -E assignment_from_no_return.py
************* Module assignment_from_no_return
assignment_from_no_return.py:11:8: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
assignment_from_no_return.py:18:0: E1111: Assigning result of a function call, where the function has no return (assignment-from-no-return)
Somewhat related: pylint-dev/astroid#1683 (latest defined method is considered) #1123 (method overriden on object's instance) #3218 (the "opposite" of this: the child's method returns, the parent's does not)
P.S. Thanks for maintaining pylint!
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Current behavior
Expected behavior
No errors.
pylint --version output
Additional info
This happens only for very particular conditions:
and
In other words, there is no error reported if:
a
is not an attribute ofB
(self.a
changed toa
)or
B
does not inherit fromA
(class B(object): ...
)Also, if a third subclass is defined that overrides
f
again, it does not get this error:Somewhat related:
pylint-dev/astroid#1683 (latest defined method is considered)
#1123 (method overriden on object's instance)
#3218 (the "opposite" of this: the child's method returns, the parent's does not)
P.S. Thanks for maintaining pylint!
The text was updated successfully, but these errors were encountered: