diff --git a/pytest_django/plugin.py b/pytest_django/plugin.py index 81455dca..8d85e2e0 100644 --- a/pytest_django/plugin.py +++ b/pytest_django/plugin.py @@ -640,7 +640,7 @@ def _django_set_urlconf(request: pytest.FixtureRequest) -> Generator[None, None, @pytest.fixture(autouse=True, scope="session") -def _fail_for_invalid_template_variable(): +def _fail_for_invalid_template_variable() -> Generator[None, None, None]: """Fixture that fails for invalid variables in templates. This fixture will fail each test that uses django template rendering