refactor: Update WebhookComponent to use type hinting for message variable
This commit is contained in:
parent
77e1122782
commit
383229db73
1 changed files with 1 additions and 1 deletions
|
|
@ -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={})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue