refactor: Update WebhookComponent to use type hinting for message variable

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-06-20 18:59:07 -03:00
commit 383229db73

View file

@ -21,7 +21,7 @@ class WebhookComponent(Component):
]
def build_data(self) -> Data:
message = ""
message: str | Data = ""
if not self.data:
self.status = "No data provided."
return Data(data={})