Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
push_notifications: Fix RemoteZulipServer annotation to work at runtime.
Anders Kaseorgd1c05467ecd6
diff --git a/zerver/lib/push_notifications.py b/zerver/lib/push_notifications.pyindex f42224664a2..02434803d81 100644--- a/zerver/lib/push_notifications.py+++ b/zerver/lib/push_notifications.py@@ -133,7 +133,7 @@ def send_apple_push_notification(user_id: int,devices: Sequence[DeviceToken],payload_data: Dict[str, Any],- remote: Optional[RemoteZulipServer] = None,+ remote: Optional["RemoteZulipServer"] = None,) -> None:if not devices:return@@ -300,7 +300,7 @@ def send_android_push_notification(devices: Sequence[DeviceToken],data: Dict[str, Any],options: Dict[str, Any],- remote: Optional[RemoteZulipServer] = None,+ remote: Optional["RemoteZulipServer"] = None,) -> None:"""Send a GCM message to the given devices.