I've been using abstract classes in Python with ABCMeta
. When you write an abstract method you tag it with the decorator @abstractmethod
. One thing that I found odd (and unlike other languages) is that when the subclass overrides the superclass method, no decorator like @override
is provided. Does anyone know what the logic behind this might be?
This makes it slightly confusing for someone reading the code to quickly establish which methods override/implement abstract methods versus methods that only exist in the subclass.