Skip to content

Commit

Permalink
Updated _EngineTemplate to allow contex like objects
Browse files Browse the repository at this point in the history
  • Loading branch information
smithdc1 committed Dec 24, 2022
1 parent 68eb4ac commit 560e52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crispy_forms/templatetags/crispy_forms_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.forms.formsets import BaseFormSet
from django.http.request import HttpRequest
from django.template import Context
from django.template.base import Parser, Token
from django.template.base import Node, Parser, Token
from django.template.loader import get_template
from django.utils.functional import SimpleLazyObject
from django.utils.safestring import SafeString
Expand All @@ -23,8 +23,8 @@
class _EngineTemplate(Protocol):
def render(
self,
context: Optional[Union[Context, Dict[str, Any]]] = ...,
request: Optional[HttpRequest] = ...,
context: Context | dict[Union[int, str, Node], Any] | None = ...,
request: HttpRequest | None = ...,
) -> SafeString:
...

Expand Down

0 comments on commit 560e52b

Please sign in to comment.