Skip to content

Commit 0f9df27

Browse files
committed
Fix overrides
1 parent 51bad65 commit 0f9df27

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

django-stubs/contrib/gis/db/models/aggregates.pyi

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any
22

33
from django.db.backends.base.base import BaseDatabaseWrapper
4-
from django.db.models import Aggregate
4+
from django.db.models import Aggregate, Expression
55
from django.db.models.sql.compiler import SQLCompiler, _AsSqlType
66

77
class GeoAggregate(Aggregate):
@@ -15,10 +15,12 @@ class Collect(GeoAggregate):
1515
class Extent(GeoAggregate):
1616
name: str
1717
def __init__(self, expression: Any, **extra: Any) -> None: ...
18+
def convert_value(self, value: Any, expression: Expression, connection: BaseDatabaseWrapper) -> Any: ... # type: ignore[override]
1819

1920
class Extent3D(GeoAggregate):
2021
name: str
2122
def __init__(self, expression: Any, **extra: Any) -> None: ...
23+
def convert_value(self, value: Any, expression: Expression, connection: BaseDatabaseWrapper) -> Any: ... # type: ignore[override]
2224

2325
class MakeLine(GeoAggregate):
2426
name: str

django-stubs/db/models/functions/datetime.pyi

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from typing import Any, ClassVar
44
from django.db import models
55
from django.db.backends.base.base import BaseDatabaseWrapper
66
from django.db.models import Func, Transform
7-
from django.db.models.expressions import Combinable
7+
from django.db.models.expressions import Combinable, Expression
88
from django.db.models.fields import Field
99
from django.db.models.sql.compiler import SQLCompiler, _AsSqlType
1010

@@ -44,6 +44,7 @@ class TruncBase(TimezoneMixin, Transform):
4444
self, expression: Combinable | str, output_field: Field | None = ..., tzinfo: tzinfo | None = ..., **extra: Any
4545
) -> None: ...
4646
def as_sql(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper) -> _AsSqlType: ... # type: ignore[override]
47+
def convert_value(self, value: Any, expression: Expression, connection: BaseDatabaseWrapper) -> Any: ... # type: ignore[override]
4748

4849
class Trunc(TruncBase):
4950
def __init__(

0 commit comments

Comments
 (0)