mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-02-27 03:52:20 +08:00
* 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
37 lines
1008 B
Python
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: ...
|