In python, is there a way to enforce attribute vs method with an abstract class?
For example if I want to enforce a method like the following:
Class AbstractCar(ABC):
@abstractmethod
def drive():
pass
then this class would still be fine to instantiate.
Class Car(AbstractCar):
drive = 5 # This satisfies the @abstractmethod above but is not a method
or vice versa with:
@property
@abstractmethod