PyDocs

Nav

Python Runtime Services

abstractproperty

abc

decorator (source) Deprecated 3.3
  • @abstractproperty
Deprecated since 3.3. It is now possible to use @property, @property.getter, @property.setter and @property.deleter with @abstractmethod, making this decorator redundant.
A decorator indicating abstract properties.

Deprecated, use 'property' with 'abstractmethod' instead:

    class C(ABC):
        @property
        @abstractmethod
        def my_abstract_property(self):
            ...
0 Examples
No examples for abc/abstractproperty.
See Also
No see-alsos for abc/abstractproperty
0 Notes
No notes for abstractproperty