mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-09 05:24:53 +08:00
fix render() signature
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
from typing import Any, Callable, Dict, List, Optional, Type, Union
|
from typing import Any, Callable, Dict, List, Optional, Type, Union
|
||||||
|
|
||||||
from django.core.handlers.wsgi import WSGIRequest
|
|
||||||
from django.db.models.base import Model
|
from django.db.models.base import Model
|
||||||
from django.db.models.manager import Manager
|
from django.db.models.manager import Manager
|
||||||
from django.db.models.query import QuerySet
|
from django.db.models.query import QuerySet
|
||||||
|
from django.http import HttpRequest
|
||||||
from django.http.response import HttpResponse, HttpResponseRedirect
|
from django.http.response import HttpResponse, HttpResponseRedirect
|
||||||
|
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ def render_to_response(
|
|||||||
using: Optional[str] = ...,
|
using: Optional[str] = ...,
|
||||||
) -> HttpResponse: ...
|
) -> HttpResponse: ...
|
||||||
def render(
|
def render(
|
||||||
request: WSGIRequest,
|
request: HttpRequest,
|
||||||
template_name: Union[List[str], str],
|
template_name: Union[List[str], str],
|
||||||
context: Optional[Dict[str, bool]] = ...,
|
context: Optional[Dict[str, bool]] = ...,
|
||||||
content_type: Optional[str] = ...,
|
content_type: Optional[str] = ...,
|
||||||
|
|||||||
Reference in New Issue
Block a user