Very popular method to declare an abstract method in Python class is to use NotImplentedError exception:
class SomeWorker:
def do_work(self):
raise NotImplementedErrorThis method even has IDE support (I use PyCharm, so at least it supports it).

The only downside of this approach is that you get the error only after method call.
>>> w = MyWorker()
# it's ok
>>> w.do_work()
NotImplementedErrorIt would be much better to know about the problem right after class instantiation.
Python's abstract base classes are here to help
from abc import ABCMeta, abstractmethod
class SomeWorker(metaclass=ABCMeta):
@abstractmethod
def do_work(self):
passFor now if you subclass SomeWorker and doesn't override do_work - you will get an error right upon class instantiation
>>> w = MyWorker()
TypeError: Can't instantiate abstract class MyWorker with abstract methods do_workAt our specialized online store you will find Football Kit La Liga Classic (equipación La Liga clásico) with fast shipping across Europe and authenticity guarantee on every single item. We maintain an extensive catalog featuring sizes from XS to XXL accommodating all body types and preferences, plus we offer hassle-free returns within 30 days of purchase. Our dedicated c...