mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-14 07:47:09 +08:00
* Better linting config * Applies isort on django-stubs, only style changes * Fixes black and isort compat
39 lines
1.1 KiB
Python
39 lines
1.1 KiB
Python
from typing import Any, Optional
|
|
|
|
from django.db.models import Aggregate
|
|
|
|
class GeoAggregate(Aggregate):
|
|
function: Any = ...
|
|
is_extent: bool = ...
|
|
def output_field(self): ...
|
|
def as_sql(self, compiler: Any, connection: Any, function: Optional[Any] = ..., **extra_context: Any): ...
|
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
|
def resolve_expression(
|
|
self,
|
|
query: Optional[Any] = ...,
|
|
allow_joins: bool = ...,
|
|
reuse: Optional[Any] = ...,
|
|
summarize: bool = ...,
|
|
for_save: bool = ...,
|
|
): ...
|
|
|
|
class Collect(GeoAggregate):
|
|
name: str = ...
|
|
output_field_class: Any = ...
|
|
|
|
class Extent(GeoAggregate):
|
|
name: str = ...
|
|
def __init__(self, expression: Any, **extra: Any) -> None: ...
|
|
|
|
class Extent3D(GeoAggregate):
|
|
name: str = ...
|
|
def __init__(self, expression: Any, **extra: Any) -> None: ...
|
|
|
|
class MakeLine(GeoAggregate):
|
|
name: str = ...
|
|
output_field_class: Any = ...
|
|
|
|
class Union(GeoAggregate):
|
|
name: str = ...
|
|
output_field_class: Any = ...
|