mirror of https://github.com/zulip/zulip.git
mypy: Fix return annotation; json_method_not_allowed.
This commit is contained in:
parent
944935dbe3
commit
1477a9102d
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue