mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-10 14:01:56 +08:00
* adding missing db.backends typings and updated test * added missing stubs * reformatted files * removed contrib.postgres.forms * fixed test
34 lines
909 B
Python
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 = ...
|