mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 13:04:47 +08:00
21 lines
449 B
Python
21 lines
449 B
Python
from django.template.backends.django import (
|
|
DjangoTemplates,
|
|
Template,
|
|
)
|
|
from typing import (
|
|
Any,
|
|
Dict,
|
|
)
|
|
|
|
|
|
def get_default_renderer() -> DjangoTemplates: ...
|
|
|
|
|
|
class BaseRenderer:
|
|
def render(self, template_name: str, context: Dict[str, Any], request: None = ...) -> str: ...
|
|
|
|
|
|
class EngineMixin:
|
|
@cached_property
|
|
def engine(self) -> DjangoTemplates: ...
|
|
def get_template(self, template_name: str) -> Template: ... |