mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-23 22:37:10 +08:00
Add stub for QuerySet.alias() (#618)
This commit is contained in:
1 parent
6dd8384381
commit
3bd9fe530e
1 file changed
+1
@@ -103,6 +103,7 @@ class _BaseQuerySet(Generic[_T], Sized):
|
||||
def prefetch_related(self: _QS, *lookups: Any) -> _QS: ...
|
||||
# TODO: return type
|
||||
def annotate(self, *args: Any, **kwargs: Any) -> QuerySet[Any]: ...
|
||||
def alias(self: _QS, *args: Any, **kwargs: Any) -> _QS: ...
|
||||
def order_by(self: _QS, *field_names: Any) -> _QS: ...
|
||||
def distinct(self: _QS, *field_names: Any) -> _QS: ...
|
||||
# extra() return type won't be supported any time soon
|
||||
|
||||
Reference in new issue
Block a user