From 6cb3a2ab1a87a2f203cdffcf024d86087ebd892c Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Wed, 5 Jul 2017 23:22:51 -0700 Subject: [PATCH] mypy: Move type annotation in jira/view.py before general comments. --- zerver/webhooks/jira/view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/webhooks/jira/view.py b/zerver/webhooks/jira/view.py index 9cc7f30bdc..bfc4f3a387 100644 --- a/zerver/webhooks/jira/view.py +++ b/zerver/webhooks/jira/view.py @@ -167,10 +167,10 @@ def add_change_info(content, field, from_field, to_field): return content def handle_updated_issue_event(payload, user_profile): + # type: (Dict[str, Any], UserProfile) -> Text # Reassigned, commented, reopened, and resolved events are all bundled # into this one 'updated' event type, so we try to extract the meaningful # event that happened - # type: (Dict[str, Any], UserProfile) -> Text issue_id = get_in(payload, ['issue', 'key']) issue = get_issue_string(payload, issue_id)