mypy: Fix return annotation; json_method_not_allowed.

This commit is contained in:
Ethan 2017-05-23 18:04:36 -07:00 committed by Tim Abbott
parent 944935dbe3
commit 1477a9102d
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def json_unauthorized(message, www_authenticate=None):
return resp return resp
def json_method_not_allowed(methods): def json_method_not_allowed(methods):
# type: (List[Text]) -> Text # type: (List[Text]) -> HttpResponseNotAllowed
resp = HttpResponseNotAllowed(methods) resp = HttpResponseNotAllowed(methods)
resp.content = force_bytes(ujson.dumps({"result": "error", resp.content = force_bytes(ujson.dumps({"result": "error",
"msg": "Method Not Allowed", "msg": "Method Not Allowed",