Created
April 8, 2023 19:32
-
-
Save naturalwarren/dc0f98ca5a7458183bcd29e933b3f3fb to your computer and use it in GitHub Desktop.
SDUI Action
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Action(BaseModel, ABC): | |
sdui_action_type: ActionType | |
def __init__(self, **data) -> None: | |
data['sdui_action_type'] = self.action_type() | |
super().__init__(**data) | |
@classmethod | |
@abstractmethod | |
def action_type(cls) -> ActionType: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment