Skip to content

Commit 01437f8

Browse files
authored
.
1 parent 1813e9e commit 01437f8

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

pytest_django/fixtures.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,11 @@
7070
@runtime_checkable
7171
class QueryCaptureContextProtocol(Protocol):
7272
@property
73-
def captured_queries(self) -> List[Dict[str, Any]]:
74-
...
73+
def captured_queries(self) -> List[Dict[str, Any]]: ...
7574

76-
def __enter__(self) -> QueryCaptureContextProtocol:
77-
...
75+
def __enter__(self) -> QueryCaptureContextProtocol: ...
7876

79-
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None:
80-
...
77+
def __exit__(self, exc_type: Any, exc_value: Any, traceback: Any) -> None: ...
8178

8279

8380
_QueriesContext = TypeVar("_QueriesContext", bound=QueryCaptureContextProtocol)
@@ -665,8 +662,7 @@ def __call__(
665662
info: str | None = ...,
666663
*,
667664
using: str | None = ...,
668-
) -> ContextManager[django.test.utils.CaptureQueriesContext]:
669-
...
665+
) -> ContextManager[django.test.utils.CaptureQueriesContext]: ...
670666

671667

672668
class DjangoAssertNumAllConnectionsQueries(Protocol):
@@ -677,8 +673,7 @@ def __call__(
677673
self,
678674
num: int,
679675
info: str | None = ...,
680-
) -> ContextManager[CaptureAllConnectionsQueriesContext]:
681-
...
676+
) -> ContextManager[CaptureAllConnectionsQueriesContext]: ...
682677

683678

684679
@contextmanager

0 commit comments

Comments
 (0)