Files
django-stubs/django-stubs/contrib/gis/forms/widgets.pyi
Marti Raudsepp 212ef40c3d Update Black dependency to fix CI lint (#900)
* Update Black dependency to fix CI lint

Closes #896.

Black 22.3.0 fixes incompatibility with Click 8.1.0:
https://github.com/psf/black/pull/2966

This currently causes the CI to fail, e.g. https://github.com/typeddjango/django-stubs/runs/5756075543

* Reformat with Black v22
2022-03-31 11:29:31 +03:00

37 lines
1008 B
Python

from typing import Any, Optional
from django.forms.widgets import Widget as Widget
logger: Any
class BaseGeometryWidget(Widget):
geom_type: str = ...
map_srid: int = ...
map_width: int = ...
map_height: int = ...
display_raw: bool = ...
supports_3d: bool = ...
template_name: str = ...
attrs: Any = ...
def __init__(self, attrs: Optional[Any] = ...) -> None: ...
def serialize(self, value: Any): ...
def deserialize(self, value: Any): ...
def get_context(self, name: Any, value: Any, attrs: Any): ...
class OpenLayersWidget(BaseGeometryWidget):
template_name: str = ...
map_srid: int = ...
class Media:
css: Any = ...
js: Any = ...
def serialize(self, value: Any): ...
def deserialize(self, value: Any): ...
class OSMWidget(OpenLayersWidget):
template_name: str = ...
default_lon: int = ...
default_lat: int = ...
default_zoom: int = ...
def __init__(self, attrs: Optional[Any] = ...) -> None: ...