mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-24 04:41:31 +08:00
split helpers into smaller files
This commit is contained in:
@@ -14,6 +14,7 @@ from django.http import HttpResponse
|
||||
class ContentNotRenderedError(Exception): ...
|
||||
|
||||
class SimpleTemplateResponse(HttpResponse):
|
||||
content: Any = ...
|
||||
closed: bool
|
||||
cookies: SimpleCookie
|
||||
status_code: int
|
||||
@@ -35,15 +36,10 @@ class SimpleTemplateResponse(HttpResponse):
|
||||
@property
|
||||
def rendered_content(self) -> str: ...
|
||||
def add_post_render_callback(self, callback: Callable) -> None: ...
|
||||
content: Any = ...
|
||||
def render(self) -> SimpleTemplateResponse: ...
|
||||
@property
|
||||
def is_rendered(self) -> bool: ...
|
||||
def __iter__(self) -> Any: ...
|
||||
@property
|
||||
def content(self): ...
|
||||
@content.setter
|
||||
def content(self, value: Any) -> None: ...
|
||||
|
||||
class TemplateResponse(SimpleTemplateResponse):
|
||||
client: Client
|
||||
|
||||
Reference in New Issue
Block a user