Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Update django.template, django.templatetags #2063

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion django-stubs/template/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class Template:
name: str | None = ...,
engine: Engine | None = ...,
) -> None: ...
def __iter__(self) -> Iterator[Node]: ...
def render(self, context: Context | dict[str, Any] | None) -> SafeString: ...
def compile_nodelist(self) -> NodeList: ...
def get_exception_info(self, exception: Exception, token: Token) -> dict[str, Any]: ...
Expand Down
1 change: 1 addition & 0 deletions django-stubs/template/defaultfilters.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def rjust(value: str, arg: SafeString | int) -> str: ...
def center(value: str, arg: SafeString | int) -> str: ...
def cut(value: str, arg: str) -> str: ...
def escape_filter(value: str) -> SafeString: ...
def escapeseq(value: list[str]) -> list[SafeString]: ...
def force_escape(value: str) -> SafeString: ...
def linebreaks_filter(value: str, autoescape: bool = ...) -> SafeString: ...
def linebreaksbr(value: str, autoescape: bool = ...) -> SafeString: ...
Expand Down
3 changes: 0 additions & 3 deletions scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,5 @@ django.forms.renderers.BaseRenderer.field_template_name
django.forms.renderers.Jinja2DivFormRenderer.__init__
django.forms.utils.RenderableFieldMixin
django.forms.widgets.ClearableFileInput.checked
django.template.Template.__iter__
django.template.autoreload
django.template.base.Template.__iter__
django.template.defaultfilters.escapeseq
django.utils.choices
Loading