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
"""MyModule.""" from abc import ABC, abstractproperty class MyClassBase(ABC): """MyClassBase.""" @abstractproperty def example(self): """Getter.""" @abstractproperty @example.setter def example(self, value): """Setter."""
The following problem is reported for the abstract setter:
example.py:14:4: R0206: Cannot have defined parameters for properties (property-with-parameters)
Removing the @abstractproperty on line 12 makes the property-with-parameters problem disappear.
@abstractproperty
property-with-parameters
It should not report any problem for the definition of the abstract setter as it's correct that it has a parameter to set the value.
$ pylint --version pylint 2.5.2 astroid 2.4.1 Python 3.7.7 (default, Mar 10 2020, 15:43:03) [Clang 11.0.0 (clang-1100.0.33.17)]
The text was updated successfully, but these errors were encountered:
property-with-parameters properly handles abstract properties
b11dbe1
Close #3600
dcb5148
fe7262d
pylint
PLR0206
No branches or pull requests
Steps to reproduce
Current behavior
The following problem is reported for the abstract setter:
Removing the
@abstractproperty
on line 12 makes theproperty-with-parameters
problem disappear.Expected behavior
It should not report any problem for the definition of the abstract setter as it's correct that it has a parameter to set the value.
pylint --version output
The text was updated successfully, but these errors were encountered: