mirror of https://github.com/zulip/zulip.git
mypy: serve_local return type to FileResponse.
This commit is contained in:
parent
d2e72b0082
commit
d4d689532d
|
@ -22,7 +22,7 @@ def serve_s3(request, url_path):
|
|||
|
||||
# TODO: Rewrite this once we have django-sendfile
|
||||
def serve_local(request, path_id):
|
||||
# type: (HttpRequest, str) -> HttpResponse
|
||||
# type: (HttpRequest, str) -> FileResponse
|
||||
import os
|
||||
import mimetypes
|
||||
local_path = get_local_file_path(path_id)
|
||||
|
|
Loading…
Reference in New Issue