Since a class or instance method in Python doesn't require you to use cls
or self
in the method, why can't you just create a class/instance method in place of a static method? Is there an advantage of using a static method as opposed to a class/instance method without referencing the cls/self in the method code?
For example: This class method
@classmethod
def add(cls, num1,num2)
return num1 + num2
As opposed to this static method
@staticmethod
def add(num1, num2)
return num1 + num2