mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
Update static.pyi (#566)
* Update static.pyi Parameters document_root and show_indexes should be marked as Optional since they have a default value. * Update static.pyi Correct signature of serve function.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user