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
issue.py:14:5: E1101: Method 'attr' has no 'setter' member (no-member) issue.py:17:8: E1101: Method 'attr' has no 'fset' member (no-member)
Expected behavior
No E1101 errors.
The described code example functions as expected, even though it is a quite niche use case. This is closely related to #2221 where a similar issue is observed with getters. However, with setters the situation is somewhat different. You cannot define @attr.setter if you have not defined the property itself in the Child class. However, you can define it by using the described @Parent.attr.setter.
The actual use case here is that I'm inheriting a class from another library that I wish to extend. It has a quite complex @attr.setter function that I don't want to directly copy in case it receives an update later. However, in my case I need to run additional "post-hook" actions directly after the Parent setter in order to synchronize some data only existing in the Child class.
Steps to reproduce
Current behavior
issue.py:14:5: E1101: Method 'attr' has no 'setter' member (no-member)
issue.py:17:8: E1101: Method 'attr' has no 'fset' member (no-member)
Expected behavior
No E1101 errors.
The described code example functions as expected, even though it is a quite niche use case. This is closely related to #2221 where a similar issue is observed with getters. However, with setters the situation is somewhat different. You cannot define
@attr.setter
if you have not defined the property itself in theChild
class. However, you can define it by using the described@Parent.attr.setter
.The actual use case here is that I'm inheriting a class from another library that I wish to extend. It has a quite complex
@attr.setter
function that I don't want to directly copy in case it receives an update later. However, in my case I need to run additional "post-hook" actions directly after theParent
setter in order to synchronize some data only existing in theChild
class.pylint --version output
The text was updated successfully, but these errors were encountered: