I wrote a class that inherits another class:
class ValueSum(SubQuery):
output = IntegerField()
And pycharm is showing the following warning:
Class ValueSum must implement all abstract methods
Then I alt+enter to add ABC to superclass. And my warning is gone. I have several questions:
Should I always do this when writing a sub-class?
What is the difference between manually implementing all the methods vs just using
ABC?Does
ABCadd something to my code?