Skip to content

Commit a999aec

Browse files
committed
Fix return type of send_internal_notification
Match the underlying manager method's Union return type since the async branch returns AsyncTaskResultSummary.
1 parent af2f401 commit a999aec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/galaxy/webapps/galaxy/services/notifications.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def notifications_enabled(self) -> bool:
5454

5555
def send_internal_notification(
5656
self, request: NotificationCreateRequest, force_sync: bool = False
57-
) -> NotificationCreatedResponse:
57+
) -> Union[NotificationCreatedResponse, AsyncTaskResultSummary]:
5858
"""Send a system-emitted notification on behalf of internal callers (e.g. share flows).
5959
6060
Unlike :meth:`send_notification`, this skips admin/permission checks because the

0 commit comments

Comments
 (0)