What is the difference between a function decorated with @staticmethod and one decorated with @classmethod?
Static Methods:
Benefits of Static Methods:
More convenient to import versus module-level functions since each method does not have to be specially imported
@staticmethod
def some_static_method(*args, **kwds):
pass
Class Methods:
These are created with classmethod in-built function.
@classmethod
def some_class_method(cls, *args, **kwds):
pass