-
-
Couldn't load subscription status.
- Fork 515
Improve some DB expression types #1243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Sorry, lots of conflicts here due to #1253 I promise I will review this if you resolve the conflicts. :) |
5239987 to
5cee9ec
Compare
|
Rebased! Tests failed due to an apt issue, fix in #1313. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one import can be cleaned up.
| def __init__(self, *expressions: Any, output_field: Field | None = ..., **extra: Any) -> None: ... | ||
| def as_sql( | ||
| self, | ||
| expression: Expression | F | Subquery, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reordering the classes here made it very difficult to understand what actually changed here. I had to order them back to get a readable diff.
In the future, if you want to reorder items, please do it as a separate PR without any additional changes.
I have made things!
GeoAggregateandGeoFuncMixinwhere the inherited types are correct**extra_contexttoFunc.as_sqlAgggregate.as_sqlsince it’s a pass-through toFunc.as_sqldb/models/expressions.pyito follow the same order as upstreamDurationExpression,TemporalSubtraction,Star, andOrderByListRelated issues
n/a
Spotted the problem with
Aggregatewhen adding Mypy to Django-MySQL, which has a custom aggregate class.