class LeGuHandler: handler_link = [] def __init__(self, func): LeGuHandler.handler_link.append(func) @staticmethod def format_data(data: dict): pass