From d878d561fb0407931301cd63caef65f6b0fe8b37 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Mon, 2 Sep 2024 18:06:19 +0300 Subject: [PATCH] Add a missing type annotation --- pytest_django/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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