api_travis_webhook: Fix message type annotation.

Not all values of this dict are strings, just the ones we use.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-20 18:25:24 -07:00
committed by Tim Abbott
parent c0fa42dd8c
commit 114f859d3a

View File

@@ -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),