Files
django-stubs/django-stubs/template/utils.pyi
Maxim Kurnikov fa718b8e55 better stubs
2018-08-05 03:13:19 +03:00

21 lines
675 B
Python

from collections import OrderedDict
from typing import Any, Dict, List, Optional, Tuple, Union
from django.core.exceptions import ImproperlyConfigured
from django.template.backends.base import BaseEngine
class InvalidTemplateEngineError(ImproperlyConfigured): ...
class EngineHandler:
templates: collections.OrderedDict
def __init__(
self, templates: List[Dict[str, Union[str, Dict[str, bool]]]] = ...
) -> None: ...
def templates(self) -> OrderedDict: ...
def __getitem__(self, alias: str) -> BaseEngine: ...
def __iter__(self) -> Any: ...
def all(self) -> List[BaseEngine]: ...
def get_app_template_dirs(dirname: str) -> Tuple: ...