From 93ebd1660fbc21cfa5ec4c29db252f187852d1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20H=C3=B6nig?= Date: Wed, 27 Sep 2017 09:29:05 +0200 Subject: [PATCH] outgoing webhook: Make notify_bot_owner mypy annotation more specific. --- zerver/lib/outgoing_webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/outgoing_webhook.py b/zerver/lib/outgoing_webhook.py index 62982fdbd4..14d9b14830 100644 --- a/zerver/lib/outgoing_webhook.py +++ b/zerver/lib/outgoing_webhook.py @@ -176,7 +176,7 @@ def get_message_url(event, request_data): return message_url def notify_bot_owner(event, request_data, status_code=None, response_content=None, exception=None): - # type: (Dict[str, Any], Dict[str, Any], Optional[int], Optional[AnyStr], Optional[Any]) -> None + # type: (Dict[str, Any], Dict[str, Any], Optional[int], Optional[AnyStr], Optional[Exception]) -> None message_url = get_message_url(event, request_data) bot_id = event['user_profile_id'] bot_owner = get_user_profile_by_id(bot_id).bot_owner