Files
django-stubs/django/template/loader.pyi
Maxim Kurnikov a9f215bf64 initial commit
2018-07-29 18:12:23 +03:00

31 lines
701 B
Python

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: ...