mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
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:
committed by
Tim Abbott
parent
c0fa42dd8c
commit
114f859d3a
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user