diff --git a/django-stubs/template/engine.pyi b/django-stubs/template/engine.pyi index e887b1c23..2b76ba17e 100644 --- a/django-stubs/template/engine.pyi +++ b/django-stubs/template/engine.pyi @@ -54,5 +54,5 @@ class Engine: ) -> tuple[Template, Origin]: ... def from_string(self, template_code: str) -> Template: ... def get_template(self, template_name: str) -> Template: ... - def render_to_string(self, template_name: str, context: Mapping[_ContextKeys, Any] | None = ...) -> SafeString: ... + def render_to_string(self, template_name: str, context: dict[str, Any] | None = ...) -> SafeString: ... def select_template(self, template_name_list: list[str]) -> Template: ... diff --git a/django-stubs/template/loader.pyi b/django-stubs/template/loader.pyi index 357192962..1380760e1 100644 --- a/django-stubs/template/loader.pyi +++ b/django-stubs/template/loader.pyi @@ -7,13 +7,12 @@ from django.utils.safestring import SafeString from . import engines as engines # noqa: F401 from .backends.base import _EngineTemplate -from .context import _ContextKeys def get_template(template_name: str, using: str | None = ...) -> _EngineTemplate: ... def select_template(template_name_list: Sequence[str] | str, using: str | None = ...) -> Any: ... def render_to_string( template_name: Sequence[str] | str, - context: Mapping[_ContextKeys, Any] | None = ..., + context: dict[str, Any] | None = ..., request: HttpRequest | None = ..., using: str | None = ..., ) -> SafeString: ...