diff --git a/django-stubs/views/static.pyi b/django-stubs/views/static.pyi index 9c9e04a..5839f66 100644 --- a/django-stubs/views/static.pyi +++ b/django-stubs/views/static.pyi @@ -3,7 +3,7 @@ from typing import Any, Optional from django.http.request import HttpRequest from django.http.response import FileResponse -def serve(request: HttpRequest, path: str, document_root: str = ..., show_indexes: bool = ...) -> FileResponse: ... +def serve(request: HttpRequest, path: str, document_root: Optional[str] = ..., show_indexes: bool = ...) -> FileResponse: ... DEFAULT_DIRECTORY_INDEX_TEMPLATE: str template_translatable: Any