Skip to content

Commit 6917033

Browse files
authored
Add stubs for django.template.autoreload (#2638)
1 parent 77b2152 commit 6917033

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

django-stubs/template/autoreload.pyi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from pathlib import Path
2+
from typing import Any
3+
4+
def get_template_directories() -> set[Path]: ...
5+
def reset_loaders() -> None: ...
6+
def watch_for_template_changes(sender: object, **kwargs: Any) -> None: ...
7+
def template_changed(sender: object | None, file_path: Path, **kwargs: Any) -> bool | None: ...

scripts/stubtest/allowlist_todo_django52.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,4 @@ django.forms.forms.BaseForm.bound_field_class
125125
django.forms.renderers.BaseRenderer.bound_field_class
126126
django.http.QueryDict.pop
127127
django.http.request.QueryDict.pop
128-
django.template.autoreload
129128
django.test.runner.ParallelTestSuite.handle_event

0 commit comments

Comments
 (0)