From 1f0c4e5fb31e17d3021d0b07d110b5e5bac700c6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 24 Apr 2017 22:01:48 -0700 Subject: [PATCH] email mirror: Fix mypy annotation error. --- zerver/views/email_mirror.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zerver/views/email_mirror.py b/zerver/views/email_mirror.py index ab21d914da..7ea70c1979 100644 --- a/zerver/views/email_mirror.py +++ b/zerver/views/email_mirror.py @@ -3,6 +3,7 @@ from __future__ import absolute_import import ujson from django.http import HttpRequest, HttpResponse +from typing import Dict from zerver.decorator import internal_notify_view from zerver.lib.email_mirror import mirror_email_message @@ -17,7 +18,7 @@ def email_mirror_message(request, data=REQ(validator=check_dict([ ('recipient', check_string), ('msg_text', check_string), ]))): - # type: (HttpRequest) -> HttpResponse + # type: (HttpRequest, Dict[str, str]) -> HttpResponse result = mirror_email_message(ujson.loads(request.POST['data'])) if result["status"] == "error": return json_error(result['msg'])