I am wondering what is, if any, the best practice regarding class and static methods.
Consider the follwoing class
class A:
number = 0
@classmethod
def add_int_m(cls, m: int) -> int:
return cls.number + m
@staticmethod
def add_int_k(k: int) -> int:
return A.number + k
The two give the same result, but is one approach preferred over the other?