mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-18 09:56:00 +08:00
initial commit
This commit is contained in:
31
django/template/loader.pyi
Normal file
31
django/template/loader.pyi
Normal file
@@ -0,0 +1,31 @@
|
||||
from django.core.handlers.wsgi import WSGIRequest
|
||||
from django.template.backends.base import BaseEngine
|
||||
from django.template.backends.django import (
|
||||
DjangoTemplates,
|
||||
Template,
|
||||
)
|
||||
from typing import (
|
||||
Any,
|
||||
List,
|
||||
Optional,
|
||||
Union,
|
||||
)
|
||||
|
||||
|
||||
def _engine_list(
|
||||
using: Optional[str] = ...
|
||||
) -> Union[List[DjangoTemplates], List[BaseEngine]]: ...
|
||||
|
||||
|
||||
def get_template(template_name: str, using: None = ...) -> Template: ...
|
||||
|
||||
|
||||
def render_to_string(
|
||||
template_name: Union[str, List[str]],
|
||||
context: Any = ...,
|
||||
request: Optional[WSGIRequest] = ...,
|
||||
using: Optional[str] = ...
|
||||
) -> str: ...
|
||||
|
||||
|
||||
def select_template(template_name_list: List[str], using: None = ...) -> Template: ...
|
||||
Reference in New Issue
Block a user