staticmethods are bound to the class and do not require a class instance. They are therefore independent of the “state” of a class instance.
So instead of creating an instance (attributes) and calling it, you just might call MyFunction.apply directly.