mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 22:11:54 +08:00
initial commit
This commit is contained in:
22
django/template/utils.pyi
Normal file
22
django/template/utils.pyi
Normal file
@@ -0,0 +1,22 @@
|
||||
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,
|
||||
)
|
||||
|
||||
|
||||
def get_app_template_dirs(dirname: str) -> Tuple: ...
|
||||
|
||||
|
||||
class EngineHandler:
|
||||
def __getitem__(self, alias: str) -> BaseEngine: ...
|
||||
def __iter__(self): ...
|
||||
def all(
|
||||
self
|
||||
) -> Union[List[DjangoTemplates], List[TemplateStrings], List[BaseEngine]]: ...
|
||||
@cached_property
|
||||
def templates(self) -> OrderedDict: ...
|
||||
Reference in New Issue
Block a user