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 probably reasons like this: str is a subclass of object; object's attribute is assigned to non-callable; thus, str's attribute by the same name should be non-callable. I can see the logic here, but the error is reported on the very first line, before the attribute has the chance to get re-assigned.
By itself, the above example code is not very meaningful. I'm reporting it because this seems to be the underlying cause of #3970 (comment). Also, it might manifest itself in other, more practical scenarios than the example above.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Current behavior
Expected behavior
No errors.
pylint --version output
Pylint probably reasons like this:
str
is a subclass ofobject
;object
's attribute is assigned to non-callable; thus,str
's attribute by the same name should be non-callable. I can see the logic here, but the error is reported on the very first line, before the attribute has the chance to get re-assigned.By itself, the above example code is not very meaningful. I'm reporting it because this seems to be the underlying cause of #3970 (comment). Also, it might manifest itself in other, more practical scenarios than the example above.
The text was updated successfully, but these errors were encountered: