Skip to content

Commit 58eddcf

Browse files
authored
Fixes linters
1 parent 1952bf9 commit 58eddcf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pytest_django/asserts.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from __future__ import annotations
66

77
import warnings
8-
from collections.abc import Sequence
98
from functools import wraps
109
from typing import TYPE_CHECKING, Any, Callable
1110

@@ -31,7 +30,7 @@ def _wrapper(name: str) -> Callable[..., Any]:
3130
func = getattr(test_case, name)
3231

3332
@wraps(func)
34-
def assertion_func(*args, **kwargs):
33+
def assertion_func(*args: Any, **kwargs: Any) -> Any:
3534
message = (
3635
f"Using pytest_django.asserts.{name} is deprecated. "
3736
f'Use fixture "djt" and djt.{name} instead.'

pytest_django/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def tearDownClass(cls) -> None:
290290
@pytest.fixture
291291
def _django_db_helper(
292292
request: pytest.FixtureRequest,
293-
django_db_setup: None,
293+
django_db_setup: None, # noqa: ARG001
294294
django_db_blocker: DjangoDbBlocker,
295295
django_testcase_class: type[django.test.TestCase],
296296
) -> Generator[None, None, None]:

0 commit comments

Comments
 (0)