Skip to content

Commit

Permalink
Add gis ClosestPoint (#1968)
Browse files Browse the repository at this point in the history
  • Loading branch information
q0w authored Feb 24, 2024
1 parent 8a30376 commit 690f506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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 @@ -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
Expand Down

0 comments on commit 690f506

Please sign in to comment.