mypy: serve_local return type to FileResponse.

This commit is contained in:
Ethan 2017-05-23 18:54:13 -07:00 committed by Tim Abbott
parent d2e72b0082
commit d4d689532d
1 changed files with 1 additions and 1 deletions

View File

@ -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)