class Function:

    def __init__(self, signature_text, action_text):
        self.signature_text = signature_text
        self.validate_signature()
        self.action_text = action_text
        self.name = signature_text.split('(', 1)[0].strip()
        self.action = None

    def validate_signature(self):
        try:
            exec(f'def {func_signature}: pass')
        except SyntaxError:
            exec(f'def {func_signature}(): pass')

    def compile_action(self):
        pass
class Function:

    def __init__(self, signature_text, action_text):
        self.signature_text = signature_text
        self.validate_signature()
        self.action_text = action_text
        self.name = signature_text.split('(', 1)[0].strip()
        self.action = None

    def validate_signature(self):
        try:
            exec(f'def {self.signature_text}: pass')
        except SyntaxError:
            exec(f'def {self.signature_text}(): pass')

    def compile_action(self):
        pass
fix copy paste error