Skip to content

Commit 0520b95

Browse files
committed
add type hiniting
1 parent 8f8fc87 commit 0520b95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lambdas/shared/src/common/api_clients/mns_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import requests
77

88
from common.api_clients.authentication import AppRestrictedAuth
9+
from common.api_clients.constants import MnsNotificationPayload
910
from common.api_clients.errors import raise_error_response
1011
from common.api_clients.retry import request_with_retry_backoff
1112

@@ -136,7 +137,7 @@ def check_delete_subscription(self):
136137
except Exception as e:
137138
return f"Error deleting subscription: {str(e)}"
138139

139-
def publish_notification(self, notification_payload) -> dict | None:
140+
def publish_notification(self, notification_payload: MnsNotificationPayload) -> dict | None:
140141
response = requests.request(
141142
"POST",
142143
f"{MNS_BASE_URL}/events",

0 commit comments

Comments
 (0)