From 509e36813f0ed418f8cbeba9b529292b678ecb49 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Wed, 9 Oct 2024 16:40:51 +0200 Subject: [PATCH] Make it explicit that the dummy template class adheres to the protocol --- django-stubs/template/backends/dummy.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django-stubs/template/backends/dummy.pyi b/django-stubs/template/backends/dummy.pyi index a334f7ea1..f95a2210d 100644 --- a/django-stubs/template/backends/dummy.pyi +++ b/django-stubs/template/backends/dummy.pyi @@ -3,11 +3,11 @@ from typing import Any from django.http.request import HttpRequest -from .base import BaseEngine +from .base import BaseEngine, _EngineTemplate class TemplateStrings(BaseEngine): def __init__(self, params: dict[str, dict[Any, Any] | list[Any] | bool | str]) -> None: ... -class Template(string.Template): +class Template(string.Template, _EngineTemplate): template: str def render(self, context: dict[str, Any] | None = ..., request: HttpRequest | None = ...) -> str: ...