git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Pycharm offers only implementation of an abstract getter but not an abstract setter


If my subclass is as this:

from subclassing.abstract.BaseSomeAbstract import BaseSomeAbstract


class ChildSomeAbstract(BaseSomeAbstract):

    @property
    def abs_prop(self):
        return self._abs_prop

I can create an instance of it with no errors. So
x = ChildSomeAbstract()
works with no problem.
It looks like setter @abstractmethod decorator is not respected.