Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0: Add gis ClosestPoint #1968

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions django-stubs/contrib/gis/db/models/functions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo_django50.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ django.contrib.gis.db.models.QuerySet.aupdate_or_create
django.contrib.gis.db.models.QuerySet.update_or_create
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
Expand Down