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.

api_travis_webhook: Fix message type annotation.

Anders Kaseorg114f859d3a48
diff --git a/zerver/webhooks/travis/view.py b/zerver/webhooks/travis/view.py
index 804a78269af..15563ef0b13 100644
--- a/zerver/webhooks/travis/view.py
+++ b/zerver/webhooks/travis/view.py
@@ -24,7 +24,7 @@ MESSAGE_TEMPLATE = (
@has_request_variables
def api_travis_webhook(request: HttpRequest, user_profile: UserProfile,
ignore_pull_requests: bool = REQ(validator=check_bool, default=True),
- message: Dict[str, str]=REQ('payload', validator=check_dict([
+ message: Dict[str, object]=REQ('payload', validator=check_dict([
('author_name', check_string),
('status_message', check_string),
('compare_url', check_string),