File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 7070@runtime_checkable
7171class 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
672668class 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
You can’t perform that action at this time.
0 commit comments