Skip to content

Commit

Permalink
Make it explicit that the dummy template class adheres to the protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
mthuurne committed Oct 9, 2024
1 parent 292e517 commit 509e368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/template/backends/dummy.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...

0 comments on commit 509e368

Please sign in to comment.