I've read TorchServe's default handlers' sources and found that the BaseHandler
is inherited from abc.ABC
and doesn't have any abstract method. The VisionHandler
is the same.
What could be the reason and when I should use abc.ABC
without @abstractmethod
?
PS: I found that one of the possible answers is to provide a common interface. In this case I think I still can use simple class without inheritance from ABC
. No one would force you to implement all methods without abstractmethod
decorator.