From 1477a9102d88cc129c15d58d3b8b7728d1214d9a Mon Sep 17 00:00:00 2001 From: Ethan Date: Tue, 23 May 2017 18:04:36 -0700 Subject: [PATCH] mypy: Fix return annotation; json_method_not_allowed. --- zerver/lib/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/response.py b/zerver/lib/response.py index c00a9807c9..eb7a023cd9 100644 --- a/zerver/lib/response.py +++ b/zerver/lib/response.py @@ -28,7 +28,7 @@ def json_unauthorized(message, www_authenticate=None): return resp def json_method_not_allowed(methods): - # type: (List[Text]) -> Text + # type: (List[Text]) -> HttpResponseNotAllowed resp = HttpResponseNotAllowed(methods) resp.content = force_bytes(ujson.dumps({"result": "error", "msg": "Method Not Allowed",