Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
front: Fix get_body_based_on_event type.
Anders Kaseorg4c772989a120
diff --git a/zerver/webhooks/front/view.py b/zerver/webhooks/front/view.pyindex 0899721c816..e3403b28329 100644--- a/zerver/webhooks/front/view.py+++ b/zerver/webhooks/front/view.py@@ -1,4 +1,4 @@-from typing import Any, Tuple+from typing import Callable, Tuplefrom django.http import HttpRequest, HttpResponsefrom django.utils.translation import gettext as _@@ -133,7 +133,7 @@ EVENT_FUNCTION_MAPPER = {ALL_EVENT_TYPES = list(EVENT_FUNCTION_MAPPER.keys())-def get_body_based_on_event(event: str) -> Any:+def get_body_based_on_event(event: str) -> Callable[[WildValue], str]:return EVENT_FUNCTION_MAPPER[event]