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

zljubisic at gmail.com zljubisic at gmail.com
Wed Jun 24 18:13:07 EDT 2020


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.


More information about the Python-list mailing list