抽象类

from abc import ABCabstractmethod


class Printable(ABC):
    @abstractmethod
    def print(self, color):
        pass


shape = Printable()  # <-error