summaryrefslogtreecommitdiff
path: root/tests/functional/p/property_with_parameters.py
blob: 9f746f75f4bdb3867750786b00fef42496864ec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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."""