abc.abstractproperty()
abc.abstractproperty() is a Python function in the ABC Module category. Defines an abstract property (deprecated, use @property + @abstractmethod instead). The syntax is abc.abstractproperty(func). Returns: Abstract property. A typical example: @property
@abstractmethod
def name(self):
pass. A close sibling is abc.ABC, which a class that marks subclasses as abstract. Use with @abstractmethod to define interfaces. A close sibling is abc.abstractmethod(), which a decorator that marks a method as abstract (must be implemented by subclasses). More about this category: Abstract base classes — ABC, abstractmethod, abstractproperty. For a broader walkthrough, read the ABC Module guide. Related ABC Module entries: abc.ABC, abc.abstractmethod(). This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try abc.abstractproperty() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.