mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
mypy: Fix return annotation; json_method_not_allowed.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user