from abc import ABC, abstractmethod # Built in. No install needed. class myclass(ABC): @abstractmethod def mymethod pass