class A: @staticmethod def work(): print("works") T = TypeVar(\'T\', bound=A) class B(Generic[T]): @staticmethod def execute():