Skip to content

Commit 4ec1ea4

Browse files
Fix imports of @cached_property
1 parent fdbbd91 commit 4ec1ea4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ from django.db.backends.base.base import BaseDatabaseWrapper
66
from django.db.models import BinaryField, BooleanField, FloatField, Func, IntegerField, TextField
77
from django.db.models import Transform as StandardTransform
88
from django.db.models.sql.compiler import SQLCompiler, _AsSqlType
9-
from utils.functional import cached_property
9+
from django.utils.functional import cached_property
1010

1111
NUMERIC_TYPES: Any
1212

@@ -84,7 +84,7 @@ class DistanceResultMixin:
8484
def output_field(self) -> DistanceField: ...
8585
def source_is_geography(self) -> Any: ...
8686

87-
class Distance(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
87+
class Distance(DistanceResultMixin, OracleToleranceMixin, GeoFunc): # type: ignore[misc]
8888
geom_param_pos: Any
8989
spheroid: Any
9090
def __init__(self, expr1: Any, expr2: Any, spheroid: Any | None = ..., **extra: Any) -> None: ...
@@ -132,7 +132,7 @@ class IsValid(OracleToleranceMixin, GeoFuncMixin, StandardTransform):
132132
output_field: ClassVar[BooleanField] # type: ignore[assignment]
133133
def as_oracle(self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any) -> _AsSqlType: ...
134134

135-
class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
135+
class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc): # type: ignore[misc]
136136
spheroid: Any
137137
def __init__(self, expr1: Any, spheroid: bool = ..., **extra: Any) -> None: ...
138138
def as_postgresql(
@@ -159,7 +159,7 @@ class NumPoints(GeoFunc):
159159
output_field: ClassVar[IntegerField] # type: ignore[assignment]
160160
arity: int
161161

162-
class Perimeter(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
162+
class Perimeter(DistanceResultMixin, OracleToleranceMixin, GeoFunc): # type: ignore[misc]
163163
arity: int
164164
def as_postgresql(
165165
self, compiler: SQLCompiler, connection: BaseDatabaseWrapper, **extra_context: Any

django-stubs/db/models/lookups.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ from django.db.models.expressions import Expression, Func
77
from django.db.models.query_utils import RegisterLookupMixin
88
from django.db.models.sql.compiler import SQLCompiler, _AsSqlType, _ParamT
99
from django.utils.datastructures import OrderedSet
10+
from django.utils.functional import cached_property
1011
from typing_extensions import Self
11-
from utils.functional import cached_property
1212

1313
_T = TypeVar("_T")
1414

0 commit comments

Comments
 (0)