Skip to content

Commit

Permalink
Added missing stub for 'Query.join()' (#1404)
Browse files Browse the repository at this point in the history
* Added stub for join

* Modified the stub according to the correct signature

* Corrected type argument for join
  • Loading branch information
RyanWalker277 authored Mar 20, 2023
1 parent 49055f8 commit ddf0864
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django-stubs/db/models/sql/query.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ class Query(BaseExpression):
def check_filterable(self, expression: Any) -> None: ...
def build_lookup(self, lookups: Sequence[str], lhs: Expression | Query, rhs: Any) -> Lookup: ...
def try_transform(self, lhs: Expression | Query, name: str) -> Transform: ...
def join(
self, join: type[BaseTable | Join], reuse: str | None = ..., reuse_with_filtered_relation: bool = ...
) -> str: ...

class JoinPromoter:
connector: str
Expand Down

0 comments on commit ddf0864

Please sign in to comment.