Skip to content

Commit 593d02f

Browse files
author
Lode Rosseel
committed
Chore: update type hints
1 parent b219fcb commit 593d02f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pytest_django/fixtures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def _build_pytest_django_test_case(
219219
_databases = databases
220220
_available_apps = available_apps
221221

222-
class PytestDjangoTestCase(test_case_class): # type: ignore[misc,valid-type]
222+
class PytestDjangoTestCase(test_case_class):
223223
reset_sequences = _reset_sequences
224224
serialized_rollback = _serialized_rollback
225225
if _databases is not None:
@@ -230,12 +230,12 @@ class PytestDjangoTestCase(test_case_class): # type: ignore[misc,valid-type]
230230
if skip_django_testcase_class_setup:
231231

232232
@classmethod
233-
def setUpClass(cls) -> None: # type: ignore[override]
233+
def setUpClass(cls) -> None:
234234
# Skip django.test.TestCase.setUpClass, call its super instead
235235
super(django.test.TestCase, cls).setUpClass()
236236

237237
@classmethod
238-
def tearDownClass(cls) -> None: # type: ignore[override]
238+
def tearDownClass(cls) -> None:
239239
# Skip django.test.TestCase.tearDownClass, call its super instead
240240
super(django.test.TestCase, cls).tearDownClass()
241241

pytest_django/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def _blocking_wrapper(self, *args, **kwargs) -> NoReturn:
842842
'"db" or "transactional_db" fixtures to enable it. '
843843
)
844844

845-
def _unblocked_async_only(self, wrapper_self, *args, **kwargs):
845+
def _unblocked_async_only(self, wrapper_self: Any, *args, **kwargs):
846846
__tracebackhide__ = True
847847
from asgiref.sync import SyncToAsync
848848

@@ -858,7 +858,7 @@ def _unblocked_async_only(self, wrapper_self, *args, **kwargs):
858858
elif self._real_ensure_connection is not None:
859859
self._real_ensure_connection(wrapper_self, *args, **kwargs)
860860

861-
def _unblocked_sync_only(self, wrapper_self, *args, **kwargs):
861+
def _unblocked_sync_only(self, wrapper_self: Any, *args, **kwargs):
862862
__tracebackhide__ = True
863863
if threading.current_thread() != threading.main_thread():
864864
raise RuntimeError(

0 commit comments

Comments
 (0)