@@ -225,9 +225,78 @@ class InheritanceManagerMixin(Generic[ModelT]):
225
225
_queryset_class = InheritanceQuerySet
226
226
227
227
if TYPE_CHECKING :
228
+ from collections .abc import Sequence
229
+
230
+ def none (self ) -> InheritanceQuerySet [ModelT ]:
231
+ ...
232
+
233
+ def all (self ) -> InheritanceQuerySet [ModelT ]:
234
+ ...
235
+
228
236
def filter (self , * args : Any , ** kwargs : Any ) -> InheritanceQuerySet [ModelT ]:
229
237
...
230
238
239
+ def exclude (self , * args : Any , ** kwargs : Any ) -> InheritanceQuerySet [ModelT ]:
240
+ ...
241
+
242
+ def complex_filter (self , filter_obj : Any ) -> InheritanceQuerySet [ModelT ]:
243
+ ...
244
+
245
+ def union (self , * other_qs : Any , all : bool = ...) -> InheritanceQuerySet [ModelT ]:
246
+ ...
247
+
248
+ def intersection (self , * other_qs : Any ) -> InheritanceQuerySet [ModelT ]:
249
+ ...
250
+
251
+ def difference (self , * other_qs : Any ) -> InheritanceQuerySet [ModelT ]:
252
+ ...
253
+
254
+ def select_for_update (
255
+ self , nowait : bool = ..., skip_locked : bool = ..., of : Sequence [str ] = ..., no_key : bool = ...
256
+ ) -> InheritanceQuerySet [ModelT ]:
257
+ ...
258
+
259
+ def select_related (self , * fields : Any ) -> InheritanceQuerySet [ModelT ]:
260
+ ...
261
+
262
+ def prefetch_related (self , * lookups : Any ) -> InheritanceQuerySet [ModelT ]:
263
+ ...
264
+
265
+ def annotate (self , * args : Any , ** kwargs : Any ) -> InheritanceQuerySet [ModelT ]:
266
+ ...
267
+
268
+ def alias (self , * args : Any , ** kwargs : Any ) -> InheritanceQuerySet [ModelT ]:
269
+ ...
270
+
271
+ def order_by (self , * field_names : Any ) -> InheritanceQuerySet [ModelT ]:
272
+ ...
273
+
274
+ def distinct (self , * field_names : Any ) -> InheritanceQuerySet [ModelT ]:
275
+ ...
276
+
277
+ def extra (
278
+ self ,
279
+ select : dict [str , Any ] | None = ...,
280
+ where : list [str ] | None = ...,
281
+ params : list [Any ] | None = ...,
282
+ tables : list [str ] | None = ...,
283
+ order_by : Sequence [str ] | None = ...,
284
+ select_params : Sequence [Any ] | None = ...,
285
+ ) -> InheritanceQuerySet [Any ]:
286
+ ...
287
+
288
+ def reverse (self ) -> InheritanceQuerySet [ModelT ]:
289
+ ...
290
+
291
+ def defer (self , * fields : Any ) -> InheritanceQuerySet [ModelT ]:
292
+ ...
293
+
294
+ def only (self , * fields : Any ) -> InheritanceQuerySet [ModelT ]:
295
+ ...
296
+
297
+ def using (self , alias : str | None ) -> InheritanceQuerySet [ModelT ]:
298
+ ...
299
+
231
300
def get_queryset (self ) -> InheritanceQuerySet [ModelT ]:
232
301
model : type [ModelT ] = self .model # type: ignore[attr-defined]
233
302
return self ._queryset_class (model )
0 commit comments