from abc import ABCMeta, abstractmethod class Observable(metaclass=ABCMeta): @abstractmethod [docs] def subscribe(self, observer): return NotImplemented