diff options
Diffstat (limited to 'tests/functional/p/property_with_parameters.py')
-rw-r--r-- | tests/functional/p/property_with_parameters.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/functional/p/property_with_parameters.py b/tests/functional/p/property_with_parameters.py new file mode 100644 index 000000000..b210bb501 --- /dev/null +++ b/tests/functional/p/property_with_parameters.py @@ -0,0 +1,22 @@ +# pylint: disable=missing-docstring, too-few-public-methods +from abc import ABCMeta, abstractmethod + + +class Cls: + @property + def attribute(self, param, param1): # [property-with-parameters] + return param + param1 + + +class MyClassBase(metaclass=ABCMeta): + """MyClassBase.""" + + @property + @abstractmethod + def example(self): + """Getter.""" + + @example.setter + @abstractmethod + def example(self, value): + """Setter.""" |