diff --git a/django-stubs/contrib/gis/db/models/functions.pyi b/django-stubs/contrib/gis/db/models/functions.pyi index 2a4f380ca..0af6c6913 100644 --- a/django-stubs/contrib/gis/db/models/functions.pyi +++ b/django-stubs/contrib/gis/db/models/functions.pyi @@ -75,6 +75,10 @@ class BoundingCircle(OracleToleranceMixin, GeomOutputGeoFunc): class Centroid(OracleToleranceMixin, GeomOutputGeoFunc): arity: int +class ClosestPoint(GeomOutputGeoFunc): + arity: int + geom_param_pos: tuple[int, int] + class Difference(OracleToleranceMixin, GeomOutputGeoFunc): arity: int geom_param_pos: Any diff --git a/scripts/stubtest/allowlist_todo_django50.txt b/scripts/stubtest/allowlist_todo_django50.txt index c2cffbe20..479d0e871 100644 --- a/scripts/stubtest/allowlist_todo_django50.txt +++ b/scripts/stubtest/allowlist_todo_django50.txt @@ -65,7 +65,6 @@ django.contrib.gis.db.models.Prefetch.get_current_querysets django.contrib.gis.db.models.Q.identity django.contrib.gis.db.models.Value.allowed_default django.contrib.gis.db.models.When.allowed_default -django.contrib.gis.db.models.functions.ClosestPoint django.contrib.gis.forms.BaseForm._html_output django.contrib.gis.forms.BaseModelFormSet.save_existing django.contrib.gis.forms.BoundField.get_context