From 690f50635e35b301f082b40b6d68f98fbb2086e8 Mon Sep 17 00:00:00 2001 From: q0w <43147888+q0w@users.noreply.github.com> Date: Sun, 25 Feb 2024 00:14:21 +0300 Subject: [PATCH] Add gis ClosestPoint (#1968) --- django-stubs/contrib/gis/db/models/functions.pyi | 4 ++++ scripts/stubtest/allowlist_todo_django50.txt | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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