From e35689992dc9c50446d39520ec85a6b01369c82e Mon Sep 17 00:00:00 2001 From: DongwookKim0823 Date: Fri, 5 Jul 2024 04:12:13 +0900 Subject: [PATCH] Add get_template_tag_modules function signature to django.template.backends.django --- django-stubs/template/backends/django.pyi | 1 + scripts/stubtest/allowlist_todo.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/django-stubs/template/backends/django.pyi b/django-stubs/template/backends/django.pyi index ffe22ce0a..f63b718bb 100644 --- a/django-stubs/template/backends/django.pyi +++ b/django-stubs/template/backends/django.pyi @@ -15,6 +15,7 @@ class DjangoTemplates(BaseEngine): def copy_exception(exc: TemplateDoesNotExist, backend: DjangoTemplates | None = ...) -> TemplateDoesNotExist: ... def reraise(exc: TemplateDoesNotExist, backend: DjangoTemplates) -> NoReturn: ... +def get_template_tag_modules() -> Iterator[tuple[str, str]]: ... def get_installed_libraries() -> dict[str, str]: ... def get_package_libraries(pkg: Any) -> Iterator[str]: ... diff --git a/scripts/stubtest/allowlist_todo.txt b/scripts/stubtest/allowlist_todo.txt index 847744bbc..571540aa0 100644 --- a/scripts/stubtest/allowlist_todo.txt +++ b/scripts/stubtest/allowlist_todo.txt @@ -1340,7 +1340,6 @@ django.template.Library.filter_function django.template.Library.simple_tag django.template.Node.__iter__ django.template.VariableDoesNotExist.__init__ -django.template.backends.django.get_template_tag_modules django.template.base.Context django.template.base.FilterExpression.is_var django.template.base.Node.__iter__