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.

outgoing_webhook: Type do_rest_call with fewer Anys.

Alex Vandiverbe100154dd66
diff --git a/zerver/lib/outgoing_webhook.py b/zerver/lib/outgoing_webhook.py
index 7e641b82e23..8c8a4af6633 100644
--- a/zerver/lib/outgoing_webhook.py
+++ b/zerver/lib/outgoing_webhook.py
@@ -300,7 +300,9 @@ def process_success_response(
def do_rest_call(
- base_url: str, event: Dict[str, Any], service_handler: Any
+ base_url: str,
+ event: Dict[str, Any],
+ service_handler: OutgoingWebhookServiceInterface,
) -> Optional[Response]:
"""Returns response of call if no exception occurs."""
try: