Skip to content

Commit 3a6fed9

Browse files
authored
Correct type for db.models.sql.query.Query.join() argument (#2055)
The argument should be an instance, not a class.
1 parent 99638f4 commit 3a6fed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/db/models/sql/query.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class Query(BaseExpression):
199199
def build_lookup(self, lookups: Sequence[str], lhs: Expression | Query, rhs: Any) -> Lookup: ...
200200
def try_transform(self, lhs: Expression | Query, name: str) -> Transform: ...
201201
def join(
202-
self, join: type[BaseTable | Join], reuse: str | None = ..., reuse_with_filtered_relation: bool = ...
202+
self, join: BaseTable | Join, reuse: str | None = ..., reuse_with_filtered_relation: bool = ...
203203
) -> str: ...
204204

205205
class JoinPromoter:

0 commit comments

Comments
 (0)