mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
18 lines
501 B
Python
18 lines
501 B
Python
from typing import Any, Optional
|
|
|
|
from django.db.models.expressions import Func
|
|
|
|
class Aggregate(Func):
|
|
filter_template: str = ...
|
|
filter: Any = ...
|
|
allow_distinct: bool = ...
|
|
def __init__(self, *expressions: Any, distinct: bool = ..., filter: Optional[Any] = ..., **extra: Any) -> None: ...
|
|
|
|
class Avg(Aggregate): ...
|
|
class Count(Aggregate): ...
|
|
class Max(Aggregate): ...
|
|
class Min(Aggregate): ...
|
|
class StdDev(Aggregate): ...
|
|
class Sum(Aggregate): ...
|
|
class Variance(Aggregate): ...
|