Files
django-stubs/django-stubs/contrib/gis/forms/fields.pyi
Na'aman Hirschfeld ce370ea79f Missing stubs (#467)
* adding missing db.backends typings and updated test

* added missing stubs

* reformatted files

* removed contrib.postgres.forms

* fixed test
2020-10-11 12:14:08 +03:00

34 lines
909 B
Python

from django import forms as forms
from typing import Any, Optional
class GeometryField(forms.Field):
widget: Any = ...
geom_type: str = ...
default_error_messages: Any = ...
srid: Any = ...
def __init__(self, *, srid: Optional[Any] = ..., geom_type: Optional[Any] = ..., **kwargs: Any) -> None: ...
def to_python(self, value: Any): ...
def clean(self, value: Any): ...
def has_changed(self, initial: Any, data: Any): ...
class GeometryCollectionField(GeometryField):
geom_type: str = ...
class PointField(GeometryField):
geom_type: str = ...
class MultiPointField(GeometryField):
geom_type: str = ...
class LineStringField(GeometryField):
geom_type: str = ...
class MultiLineStringField(GeometryField):
geom_type: str = ...
class PolygonField(GeometryField):
geom_type: str = ...
class MultiPolygonField(GeometryField):
geom_type: str = ...