diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-14 08:30:03 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-05-14 08:30:03 +0200 |
commit | b11dbe1a1b6de27811dd2b644cb663174f37f04f (patch) | |
tree | cd91f1f360fe18ce7a1f70bb1fd812703bd521c1 /tests/functional/p/property_with_parameters.py | |
parent | 9e424bb70f3bbb29f0ef9675024da26e541dca84 (diff) | |
download | pylint-git-property-with-parameter-abstract.tar.gz |
`property-with-parameters` properly handles abstract propertiesproperty-with-parameter-abstract
Close #3600
Diffstat (limited to 'tests/functional/p/property_with_parameters.py')
-rw-r--r-- | tests/functional/p/property_with_parameters.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/p/property_with_parameters.py b/tests/functional/p/property_with_parameters.py index 2f521991f..9f746f75f 100644 --- a/tests/functional/p/property_with_parameters.py +++ b/tests/functional/p/property_with_parameters.py @@ -1,7 +1,21 @@ # pylint: disable=missing-docstring, too-few-public-methods +from abc import ABCMeta, abstractproperty class Cls: @property def attribute(self, param, param1): # [property-with-parameters] return param + param1 + + +class MyClassBase(metaclass=ABCMeta): + """MyClassBase.""" + + @abstractproperty + def example(self): + """Getter.""" + + @abstractproperty + @example.setter + def example(self, value): + """Setter.""" |