In fact, what's the point of using a class staticmethod at all? This static method is not used elsewhere. If that's that case, just make it a closure function here inside this. That makes the code easier to read because it's closer to where it's being used.