mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-25 02:57:14 +08:00
25 lines
942 B
Python
25 lines
942 B
Python
# Stubs for django.template.utils (Python 3.6)
|
|
#
|
|
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
|
|
|
from django.core.exceptions import ImproperlyConfigured
|
|
from typing import Any, Optional
|
|
|
|
from collections import OrderedDict
|
|
from django.template.backends.base import BaseEngine
|
|
from django.template.backends.django import DjangoTemplates
|
|
from django.template.backends.dummy import TemplateStrings
|
|
from typing import List, Tuple, Union
|
|
class InvalidTemplateEngineError(ImproperlyConfigured): ...
|
|
|
|
class EngineHandler:
|
|
_templates: Any = ...
|
|
_engines: Any = ...
|
|
def __init__(self, templates: Optional[Any] = ...) -> None: ...
|
|
def templates(self) -> OrderedDict: ...
|
|
def __getitem__(self, alias: str) -> BaseEngine: ...
|
|
def __iter__(self): ...
|
|
def all(self) -> Union[List[BaseEngine], List[TemplateStrings], List[DjangoTemplates]]: ...
|
|
|
|
def get_app_template_dirs(dirname: str) -> Tuple: ...
|