-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve some DB expression types (#1243)
* Remove several things from `GeoAggregate` and `GeoFuncMixin` where the inherited types are correct * Add missing kwargs `**extra_context` to `Func.as_sql` * Remove `Agggregate.as_sql` since it’s a pass-through to `Func.as_sql` * Reorganize `db/models/expressions.pyi` to follow the same order as upstream * Add missing classes `DurationExpression`, `TemporalSubtraction`, `Star`, and `OrderByList` Spotted the problem with `Aggregate` when adding Mypy to Django-MySQL, which has a custom aggregate class. Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
a868e74
commit a7a1518
Showing
3 changed files
with
62 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters