Skip to content

Commit

Permalink
Add BaseExpression.contains_subquery (update to Django 4.2.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
intgr authored and Petter Friberg committed Nov 7, 2023
1 parent 7440a7e commit f216047
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions django-stubs/db/models/expressions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class BaseExpression:
def contains_over_clause(self) -> bool: ...
@cached_property
def contains_column_references(self) -> bool: ...
@cached_property
def contains_subquery(self) -> bool: ...
def resolve_expression(
self,
query: Any = ...,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pytest-shard==0.1.2

# Django deps:
psycopg2-binary
Django==4.2.6
Django==4.2.7
-e ./ext
-e .[compatible-mypy]

Expand Down
1 change: 1 addition & 0 deletions scripts/stubtest/allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ django.db.models.Lookup.contains_aggregate
django.db.models.Lookup.contains_over_clause
django.db.models.expressions.BaseExpression.contains_aggregate
django.db.models.expressions.BaseExpression.contains_column_references
django.db.models.expressions.BaseExpression.contains_subquery
django.db.models.expressions.BaseExpression.contains_over_clause
django.db.models.expressions.BaseExpression.convert_value
django.db.models.fields.DecimalField.validators
Expand Down

0 comments on commit f216047

Please sign in to comment.