Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: Extend type for post_data in send_to_push_bouncer.

Tim Abbottd603b0641e00
diff --git a/zerver/lib/remote_server.py b/zerver/lib/remote_server.py
index c6016a680cd..0a33332443a 100644
--- a/zerver/lib/remote_server.py
+++ b/zerver/lib/remote_server.py
@@ -26,7 +26,7 @@ class PushNotificationBouncerRetryLaterError(JsonableError):
def send_to_push_bouncer(
method: str,
endpoint: str,
- post_data: Union[bytes, Mapping[str, Union[str, bytes]]],
+ post_data: Union[bytes, Mapping[str, Union[str, int, None, bytes]]],
extra_headers: Mapping[str, str] = {},
) -> Dict[str, object]:
"""While it does actually send the notice, this function has a lot of