File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def tearDownClass(cls) -> None:
266
266
django_db_blocker .restore ()
267
267
268
268
269
- def validate_django_db (marker ) -> _DjangoDb :
269
+ def validate_django_db (marker : pytest . Mark ) -> _DjangoDb :
270
270
"""Validate the django_db marker.
271
271
272
272
It checks the signature and creates the ``transaction``,
Original file line number Diff line number Diff line change @@ -617,7 +617,7 @@ def django_mail_dnsname() -> str:
617
617
@pytest .fixture (autouse = True )
618
618
def _django_set_urlconf (request : pytest .FixtureRequest ) -> Generator [None , None , None ]:
619
619
"""Apply the @pytest.mark.urls marker, internal to pytest-django."""
620
- marker = request .node .get_closest_marker ("urls" )
620
+ marker : pytest . Mark | None = request .node .get_closest_marker ("urls" )
621
621
if marker :
622
622
skip_if_no_django ()
623
623
import django .conf
@@ -836,7 +836,7 @@ def restore(self) -> None:
836
836
blocking_manager_key = pytest .StashKey [DjangoDbBlocker ]()
837
837
838
838
839
- def validate_urls (marker ) -> list [str ]:
839
+ def validate_urls (marker : pytest . Mark ) -> list [str ]:
840
840
"""Validate the urls marker.
841
841
842
842
It checks the signature and creates the `urls` attribute on the
You can’t perform that action at this time.
0 commit comments