mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 08:47:49 +08:00
Fill remaining missing hints with Any & disallow partial hints (#1206)
* Fill remaining missing hints with Any & disallow partial hints * ModelFormatDict -> _ModelFormatDict * Fixes * Add __init__ return hints * Add suppression
This commit is contained in:
@@ -241,7 +241,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
|
|||||||
extra_tags: str = ...,
|
extra_tags: str = ...,
|
||||||
fail_silently: bool = ...,
|
fail_silently: bool = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def save_form(self, request: Any, form: Any, change: Any): ...
|
def save_form(self, request: Any, form: Any, change: Any) -> Any: ...
|
||||||
def save_model(self, request: Any, obj: _ModelT, form: Any, change: Any) -> None: ...
|
def save_model(self, request: Any, obj: _ModelT, form: Any, change: Any) -> None: ...
|
||||||
def delete_model(self, request: HttpRequest, obj: _ModelT) -> None: ...
|
def delete_model(self, request: HttpRequest, obj: _ModelT) -> None: ...
|
||||||
def delete_queryset(self, request: HttpRequest, queryset: QuerySet) -> None: ...
|
def delete_queryset(self, request: HttpRequest, queryset: QuerySet) -> None: ...
|
||||||
@@ -255,7 +255,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
|
|||||||
change: bool = ...,
|
change: bool = ...,
|
||||||
form_url: str = ...,
|
form_url: str = ...,
|
||||||
obj: Optional[_ModelT] = ...,
|
obj: Optional[_ModelT] = ...,
|
||||||
): ...
|
) -> Any: ...
|
||||||
def response_add(
|
def response_add(
|
||||||
self, request: HttpRequest, obj: _ModelT, post_url_continue: Optional[str] = ...
|
self, request: HttpRequest, obj: _ModelT, post_url_continue: Optional[str] = ...
|
||||||
) -> HttpResponse: ...
|
) -> HttpResponse: ...
|
||||||
@@ -265,7 +265,7 @@ class ModelAdmin(BaseModelAdmin[_ModelT]):
|
|||||||
# Probably FileResponse cannot come from ModelAdmin views
|
# Probably FileResponse cannot come from ModelAdmin views
|
||||||
def response_action(self, request: HttpRequest, queryset: QuerySet) -> Optional[HttpResponse]: ...
|
def response_action(self, request: HttpRequest, queryset: QuerySet) -> Optional[HttpResponse]: ...
|
||||||
def response_delete(self, request: HttpRequest, obj_display: str, obj_id: int) -> HttpResponse: ...
|
def response_delete(self, request: HttpRequest, obj_display: str, obj_id: int) -> HttpResponse: ...
|
||||||
def render_delete_form(self, request: Any, context: Any): ...
|
def render_delete_form(self, request: Any, context: Any) -> Any: ...
|
||||||
def get_inline_formsets(
|
def get_inline_formsets(
|
||||||
self, request: HttpRequest, formsets: List[Any], inline_instances: List[Any], obj: Optional[_ModelT] = ...
|
self, request: HttpRequest, formsets: List[Any], inline_instances: List[Any], obj: Optional[_ModelT] = ...
|
||||||
) -> List[Any]: ...
|
) -> List[Any]: ...
|
||||||
|
|||||||
@@ -45,11 +45,11 @@ class NestedObjects(Collector):
|
|||||||
def nested(self, format_callback: Callable = ...) -> List[Any]: ...
|
def nested(self, format_callback: Callable = ...) -> List[Any]: ...
|
||||||
def can_fast_delete(self, *args: Any, **kwargs: Any) -> bool: ...
|
def can_fast_delete(self, *args: Any, **kwargs: Any) -> bool: ...
|
||||||
|
|
||||||
class ModelFormatDict(TypedDict):
|
class _ModelFormatDict(TypedDict):
|
||||||
verbose_name: str
|
verbose_name: str
|
||||||
verbose_name_plural: str
|
verbose_name_plural: str
|
||||||
|
|
||||||
def model_format_dict(obj: Union[Model, Type[Model], QuerySet, Options[Model]]) -> ModelFormatDict: ...
|
def model_format_dict(obj: Union[Model, Type[Model], QuerySet, Options[Model]]) -> _ModelFormatDict: ...
|
||||||
def model_ngettext(obj: Union[Options, QuerySet], n: Optional[int] = ...) -> str: ...
|
def model_ngettext(obj: Union[Options, QuerySet], n: Optional[int] = ...) -> str: ...
|
||||||
def lookup_field(
|
def lookup_field(
|
||||||
name: Union[Callable, str], obj: Model, model_admin: Optional[BaseModelAdmin] = ...
|
name: Union[Callable, str], obj: Model, model_admin: Optional[BaseModelAdmin] = ...
|
||||||
|
|||||||
@@ -35,9 +35,9 @@ class GeoModelAdmin(ModelAdmin):
|
|||||||
debug: bool = ...
|
debug: bool = ...
|
||||||
widget: Any = ...
|
widget: Any = ...
|
||||||
@property
|
@property
|
||||||
def media(self): ...
|
def media(self) -> Any: ...
|
||||||
def formfield_for_dbfield(self, db_field: Any, request: Any, **kwargs: Any): ...
|
def formfield_for_dbfield(self, db_field: Any, request: Any, **kwargs: Any) -> Any: ...
|
||||||
def get_map_widget(self, db_field: Any): ...
|
def get_map_widget(self, db_field: Any) -> Any: ...
|
||||||
|
|
||||||
class OSMGeoAdmin(GeoModelAdmin):
|
class OSMGeoAdmin(GeoModelAdmin):
|
||||||
map_template: str = ...
|
map_template: str = ...
|
||||||
|
|||||||
@@ -7,5 +7,5 @@ geo_context: Any
|
|||||||
logger: Logger
|
logger: Logger
|
||||||
|
|
||||||
class OpenLayersWidget(Textarea):
|
class OpenLayersWidget(Textarea):
|
||||||
def get_context(self, name: Any, value: Any, attrs: Any): ...
|
def get_context(self, name: Any, value: Any, attrs: Any) -> Any: ...
|
||||||
def map_options(self): ...
|
def map_options(self) -> Any: ...
|
||||||
|
|||||||
@@ -2,32 +2,32 @@ from typing import Any
|
|||||||
|
|
||||||
class SpatialRefSysMixin:
|
class SpatialRefSysMixin:
|
||||||
@property
|
@property
|
||||||
def srs(self): ...
|
def srs(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ellipsoid(self): ...
|
def ellipsoid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def spheroid(self): ...
|
def spheroid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def datum(self): ...
|
def datum(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def projected(self): ...
|
def projected(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def local(self): ...
|
def local(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geographic(self): ...
|
def geographic(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def linear_name(self): ...
|
def linear_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def linear_units(self): ...
|
def linear_units(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def angular_name(self): ...
|
def angular_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def angular_units(self): ...
|
def angular_units(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def units(self): ...
|
def units(self) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_units(cls, wkt: Any): ...
|
def get_units(cls, wkt: Any) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_spheroid(cls, wkt: Any, string: bool = ...): ...
|
def get_spheroid(cls, wkt: Any, string: bool = ...) -> Any: ...
|
||||||
|
|||||||
@@ -18,17 +18,17 @@ class BaseSpatialOperations:
|
|||||||
from_text: bool = ...
|
from_text: bool = ...
|
||||||
def convert_extent(self, box: Any, srid: Any) -> Any: ...
|
def convert_extent(self, box: Any, srid: Any) -> Any: ...
|
||||||
def convert_extent3d(self, box: Any, srid: Any) -> Any: ...
|
def convert_extent3d(self, box: Any, srid: Any) -> Any: ...
|
||||||
def geo_quote_name(self, name: Any): ...
|
def geo_quote_name(self, name: Any) -> Any: ...
|
||||||
def geo_db_type(self, f: Any) -> Any: ...
|
def geo_db_type(self, f: Any) -> Any: ...
|
||||||
def get_distance(self, f: Any, value: Any, lookup_type: Any) -> Any: ...
|
def get_distance(self, f: Any, value: Any, lookup_type: Any) -> Any: ...
|
||||||
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any): ...
|
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any) -> Any: ...
|
||||||
def check_expression_support(self, expression: Any) -> None: ...
|
def check_expression_support(self, expression: Any) -> None: ...
|
||||||
def spatial_aggregate_name(self, agg_name: Any) -> Any: ...
|
def spatial_aggregate_name(self, agg_name: Any) -> Any: ...
|
||||||
def spatial_function_name(self, func_name: Any): ...
|
def spatial_function_name(self, func_name: Any) -> Any: ...
|
||||||
def geometry_columns(self) -> Any: ...
|
def geometry_columns(self) -> Any: ...
|
||||||
def spatial_ref_sys(self) -> Any: ...
|
def spatial_ref_sys(self) -> Any: ...
|
||||||
distance_expr_for_lookup: Any = ...
|
distance_expr_for_lookup: Any = ...
|
||||||
def get_db_converters(self, expression: Any): ...
|
def get_db_converters(self, expression: Any) -> Any: ...
|
||||||
def get_geometry_converter(self, expression: Any) -> Any: ...
|
def get_geometry_converter(self, expression: Any) -> Any: ...
|
||||||
def get_area_att_for_field(self, field: Any): ...
|
def get_area_att_for_field(self, field: Any) -> Any: ...
|
||||||
def get_distance_att_for_field(self, field: Any): ...
|
def get_distance_att_for_field(self, field: Any) -> Any: ...
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ from django.db.backends.mysql.introspection import DatabaseIntrospection as Data
|
|||||||
|
|
||||||
class MySQLIntrospection(DatabaseIntrospection):
|
class MySQLIntrospection(DatabaseIntrospection):
|
||||||
data_types_reverse: Any = ...
|
data_types_reverse: Any = ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any) -> Any: ...
|
||||||
def supports_spatial_index(self, cursor: Any, table_name: Any): ...
|
def supports_spatial_index(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ class MySQLGISSchemaEditor(DatabaseSchemaEditor):
|
|||||||
sql_drop_spatial_index: str = ...
|
sql_drop_spatial_index: str = ...
|
||||||
geometry_sql: Any = ...
|
geometry_sql: Any = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def skip_default(self, field: Any): ...
|
def skip_default(self, field: Any) -> Any: ...
|
||||||
def column_sql(self, model: Any, field: Any, include_default: bool = ...): ...
|
def column_sql(self, model: Any, field: Any, include_default: bool = ...) -> Any: ...
|
||||||
def create_model(self, model: Any) -> None: ...
|
def create_model(self, model: Any) -> None: ...
|
||||||
def add_field(self, model: Any, field: Any) -> None: ...
|
def add_field(self, model: Any, field: Any) -> None: ...
|
||||||
def remove_field(self, model: Any, field: Any) -> None: ...
|
def remove_field(self, model: Any, field: Any) -> None: ...
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ from django.db.backends.oracle.introspection import DatabaseIntrospection as Dat
|
|||||||
|
|
||||||
class OracleIntrospection(DatabaseIntrospection):
|
class OracleIntrospection(DatabaseIntrospection):
|
||||||
@property
|
@property
|
||||||
def data_types_reverse(self): ...
|
def data_types_reverse(self) -> Any: ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any) -> Any: ...
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ class OracleGeometryColumns(models.Model):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls): ...
|
def table_name_col(cls) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def geom_col_name(cls): ...
|
def geom_col_name(cls) -> Any: ...
|
||||||
|
|
||||||
class OracleSpatialRefSys(models.Model, SpatialRefSysMixin):
|
class OracleSpatialRefSys(models.Model, SpatialRefSysMixin):
|
||||||
cs_name: Any = ...
|
cs_name: Any = ...
|
||||||
@@ -30,4 +30,4 @@ class OracleSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ class OracleOperations(BaseSpatialOperations, DatabaseOperations):
|
|||||||
select: str = ...
|
select: str = ...
|
||||||
gis_operators: Any = ...
|
gis_operators: Any = ...
|
||||||
unsupported_functions: Any = ...
|
unsupported_functions: Any = ...
|
||||||
def geo_quote_name(self, name: Any): ...
|
def geo_quote_name(self, name: Any) -> Any: ...
|
||||||
def geo_db_type(self, f: Any): ...
|
def geo_db_type(self, f: Any) -> Any: ...
|
||||||
def get_distance(self, f: Any, value: Any, lookup_type: Any): ...
|
def get_distance(self, f: Any, value: Any, lookup_type: Any) -> Any: ...
|
||||||
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any): ...
|
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any) -> Any: ...
|
||||||
def spatial_aggregate_name(self, agg_name: Any): ...
|
def spatial_aggregate_name(self, agg_name: Any) -> Any: ...
|
||||||
def geometry_columns(self): ...
|
def geometry_columns(self) -> Any: ...
|
||||||
def spatial_ref_sys(self): ...
|
def spatial_ref_sys(self) -> Any: ...
|
||||||
def modify_insert_params(self, placeholder: Any, params: Any): ...
|
def modify_insert_params(self, placeholder: Any, params: Any) -> Any: ...
|
||||||
def get_geometry_converter(self, expression: Any): ...
|
def get_geometry_converter(self, expression: Any) -> Any: ...
|
||||||
def get_area_att_for_field(self, field: Any): ...
|
def get_area_att_for_field(self, field: Any) -> Any: ...
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ class OracleGISSchemaEditor(DatabaseSchemaEditor):
|
|||||||
sql_clear_geometry_field_metadata: str = ...
|
sql_clear_geometry_field_metadata: str = ...
|
||||||
geometry_sql: Any = ...
|
geometry_sql: Any = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def geo_quote_name(self, name: Any): ...
|
def geo_quote_name(self, name: Any) -> Any: ...
|
||||||
def column_sql(self, model: Any, field: Any, include_default: bool = ...): ...
|
def column_sql(self, model: Any, field: Any, include_default: bool = ...) -> Any: ...
|
||||||
def create_model(self, model: Any) -> None: ...
|
def create_model(self, model: Any) -> None: ...
|
||||||
def delete_model(self, model: Any) -> None: ...
|
def delete_model(self, model: Any) -> None: ...
|
||||||
def add_field(self, model: Any, field: Any) -> None: ...
|
def add_field(self, model: Any, field: Any) -> None: ...
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ class PostGISAdapter:
|
|||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
geography: Any = ...
|
geography: Any = ...
|
||||||
def __init__(self, obj: Any, geography: bool = ...) -> None: ...
|
def __init__(self, obj: Any, geography: bool = ...) -> None: ...
|
||||||
def __conform__(self, proto: Any): ...
|
def __conform__(self, proto: Any) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
def __hash__(self) -> Any: ...
|
def __hash__(self) -> Any: ...
|
||||||
def prepare(self, conn: Any) -> None: ...
|
def prepare(self, conn: Any) -> None: ...
|
||||||
def getquoted(self): ...
|
def getquoted(self) -> Any: ...
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ from django.db.backends.postgresql.introspection import DatabaseIntrospection as
|
|||||||
class PostGISIntrospection(DatabaseIntrospection):
|
class PostGISIntrospection(DatabaseIntrospection):
|
||||||
postgis_oid_lookup: Any = ...
|
postgis_oid_lookup: Any = ...
|
||||||
ignored_tables: Any = ...
|
ignored_tables: Any = ...
|
||||||
def get_field_type(self, data_type: Any, description: Any): ...
|
def get_field_type(self, data_type: Any, description: Any) -> Any: ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any) -> Any: ...
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ class PostGISGeometryColumns(models.Model):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls): ...
|
def table_name_col(cls) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def geom_col_name(cls): ...
|
def geom_col_name(cls) -> Any: ...
|
||||||
|
|
||||||
class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
|
class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
@@ -33,4 +33,4 @@ class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
|
|||||||
@@ -14,13 +14,13 @@ class PostGISOperator(SpatialOperator):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self, geography: bool = ..., raster: Union[bool, Literal["bilateral"]] = ..., **kwargs: Any
|
self, geography: bool = ..., raster: Union[bool, Literal["bilateral"]] = ..., **kwargs: Any
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def check_raster(self, lookup: Any, template_params: Any): ...
|
def check_raster(self, lookup: Any, template_params: Any) -> Any: ...
|
||||||
|
|
||||||
class ST_Polygon(Func):
|
class ST_Polygon(Func):
|
||||||
function: str = ...
|
function: str = ...
|
||||||
def __init__(self, expr: Any) -> None: ...
|
def __init__(self, expr: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def output_field(self): ...
|
def output_field(self) -> Any: ...
|
||||||
|
|
||||||
class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
|
class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
|
||||||
name: str = ...
|
name: str = ...
|
||||||
@@ -40,23 +40,23 @@ class PostGISOperations(BaseSpatialOperations, DatabaseOperations):
|
|||||||
select: str = ...
|
select: str = ...
|
||||||
select_extent: Any = ...
|
select_extent: Any = ...
|
||||||
@property
|
@property
|
||||||
def function_names(self): ...
|
def function_names(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def spatial_version(self): ...
|
def spatial_version(self) -> Any: ...
|
||||||
def geo_db_type(self, f: Any): ...
|
def geo_db_type(self, f: Any) -> Any: ...
|
||||||
def get_distance(self, f: Any, dist_val: Any, lookup_type: Any): ...
|
def get_distance(self, f: Any, dist_val: Any, lookup_type: Any) -> Any: ...
|
||||||
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any): ...
|
def get_geom_placeholder(self, f: Any, value: Any, compiler: Any) -> Any: ...
|
||||||
def postgis_geos_version(self): ...
|
def postgis_geos_version(self) -> Any: ...
|
||||||
def postgis_lib_version(self): ...
|
def postgis_lib_version(self) -> Any: ...
|
||||||
def postgis_proj_version(self): ...
|
def postgis_proj_version(self) -> Any: ...
|
||||||
def postgis_version(self): ...
|
def postgis_version(self) -> Any: ...
|
||||||
def postgis_full_version(self): ...
|
def postgis_full_version(self) -> Any: ...
|
||||||
def postgis_version_tuple(self): ...
|
def postgis_version_tuple(self) -> Any: ...
|
||||||
def proj_version_tuple(self): ...
|
def proj_version_tuple(self) -> Any: ...
|
||||||
def spatial_aggregate_name(self, agg_name: Any): ...
|
def spatial_aggregate_name(self, agg_name: Any) -> Any: ...
|
||||||
def geometry_columns(self): ...
|
def geometry_columns(self) -> Any: ...
|
||||||
def spatial_ref_sys(self): ...
|
def spatial_ref_sys(self) -> Any: ...
|
||||||
def parse_raster(self, value: Any): ...
|
def parse_raster(self, value: Any) -> Any: ...
|
||||||
def distance_expr_for_lookup(self, lhs: Any, rhs: Any, **kwargs: Any): ...
|
def distance_expr_for_lookup(self, lhs: Any, rhs: Any, **kwargs: Any) -> Any: ...
|
||||||
def get_geometry_converter(self, expression: Any): ...
|
def get_geometry_converter(self, expression: Any) -> Any: ...
|
||||||
def get_area_att_for_field(self, field: Any): ...
|
def get_area_att_for_field(self, field: Any) -> Any: ...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def pack(structure: Any, data: Any): ...
|
def pack(structure: Any, data: Any) -> Any: ...
|
||||||
def unpack(structure: Any, data: Any): ...
|
def unpack(structure: Any, data: Any) -> Any: ...
|
||||||
def chunk(data: Any, index: Any): ...
|
def chunk(data: Any, index: Any) -> Any: ...
|
||||||
def from_pgraster(data: Any): ...
|
def from_pgraster(data: Any) -> Any: ...
|
||||||
def to_pgraster(rast: Any): ...
|
def to_pgraster(rast: Any) -> Any: ...
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ class PostGISSchemaEditor(DatabaseSchemaEditor):
|
|||||||
rast_index_wrapper: str = ...
|
rast_index_wrapper: str = ...
|
||||||
sql_alter_column_to_3d: str = ...
|
sql_alter_column_to_3d: str = ...
|
||||||
sql_alter_column_to_2d: str = ...
|
sql_alter_column_to_2d: str = ...
|
||||||
def geo_quote_name(self, name: Any): ...
|
def geo_quote_name(self, name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ from typing import Any
|
|||||||
from django.contrib.gis.db.backends.base.adapter import WKTAdapter as WKTAdapter
|
from django.contrib.gis.db.backends.base.adapter import WKTAdapter as WKTAdapter
|
||||||
|
|
||||||
class SpatiaLiteAdapter(WKTAdapter):
|
class SpatiaLiteAdapter(WKTAdapter):
|
||||||
def __conform__(self, protocol: Any): ...
|
def __conform__(self, protocol: Any) -> Any: ...
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ class DatabaseWrapper(SQLiteDatabaseWrapper):
|
|||||||
ops_class: Any = ...
|
ops_class: Any = ...
|
||||||
lib_spatialite_paths: Any = ...
|
lib_spatialite_paths: Any = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def get_new_connection(self, conn_params: Any): ...
|
def get_new_connection(self, conn_params: Any) -> Any: ...
|
||||||
def prepare_database(self) -> None: ...
|
def prepare_database(self) -> None: ...
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
|
|||||||
|
|
||||||
class SpatiaLiteIntrospection(DatabaseIntrospection):
|
class SpatiaLiteIntrospection(DatabaseIntrospection):
|
||||||
data_types_reverse: Any = ...
|
data_types_reverse: Any = ...
|
||||||
def get_geometry_type(self, table_name: Any, description: Any): ...
|
def get_geometry_type(self, table_name: Any, description: Any) -> Any: ...
|
||||||
def get_constraints(self, cursor: Any, table_name: Any): ...
|
def get_constraints(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ class SpatialiteGeometryColumns(models.Model):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def table_name_col(cls): ...
|
def table_name_col(cls) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def geom_col_name(cls): ...
|
def geom_col_name(cls) -> Any: ...
|
||||||
|
|
||||||
class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
|
class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
@@ -33,4 +33,4 @@ class SpatialiteSpatialRefSys(models.Model, SpatialRefSysMixin):
|
|||||||
db_table: str = ...
|
db_table: str = ...
|
||||||
managed: bool = ...
|
managed: bool = ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
|
|||||||
@@ -21,15 +21,15 @@ class SpatiaLiteOperations(BaseSpatialOperations, DatabaseOperations):
|
|||||||
@property
|
@property
|
||||||
def unsupported_functions(self) -> Set[str]: ... # type: ignore[override]
|
def unsupported_functions(self) -> Set[str]: ... # type: ignore[override]
|
||||||
@property
|
@property
|
||||||
def spatial_version(self): ...
|
def spatial_version(self) -> Any: ...
|
||||||
def geo_db_type(self, f: Any) -> None: ...
|
def geo_db_type(self, f: Any) -> None: ...
|
||||||
def get_distance(self, f: Any, value: Any, lookup_type: Any): ...
|
def get_distance(self, f: Any, value: Any, lookup_type: Any) -> Any: ...
|
||||||
def geos_version(self): ...
|
def geos_version(self) -> Any: ...
|
||||||
def proj_version(self): ...
|
def proj_version(self) -> Any: ...
|
||||||
def lwgeom_version(self): ...
|
def lwgeom_version(self) -> Any: ...
|
||||||
def spatialite_version(self): ...
|
def spatialite_version(self) -> Any: ...
|
||||||
def spatialite_version_tuple(self): ...
|
def spatialite_version_tuple(self) -> Any: ...
|
||||||
def spatial_aggregate_name(self, agg_name: Any): ...
|
def spatial_aggregate_name(self, agg_name: Any) -> Any: ...
|
||||||
def geometry_columns(self): ...
|
def geometry_columns(self) -> Any: ...
|
||||||
def spatial_ref_sys(self): ...
|
def spatial_ref_sys(self) -> Any: ...
|
||||||
def get_geometry_converter(self, expression: Any): ...
|
def get_geometry_converter(self, expression: Any) -> Any: ...
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ class SpatialiteSchemaEditor(DatabaseSchemaEditor):
|
|||||||
geometry_tables: Any = ...
|
geometry_tables: Any = ...
|
||||||
geometry_sql: Any = ...
|
geometry_sql: Any = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def geo_quote_name(self, name: Any): ...
|
def geo_quote_name(self, name: Any) -> Any: ...
|
||||||
def column_sql(self, model: Any, field: Any, include_default: bool = ...): ...
|
def column_sql(self, model: Any, field: Any, include_default: bool = ...) -> Any: ...
|
||||||
def remove_geometry_metadata(self, model: Any, field: Any) -> None: ...
|
def remove_geometry_metadata(self, model: Any, field: Any) -> None: ...
|
||||||
def create_model(self, model: Any) -> None: ...
|
def create_model(self, model: Any) -> None: ...
|
||||||
def delete_model(self, model: Any, **kwargs: Any) -> None: ...
|
def delete_model(self, model: Any, **kwargs: Any) -> None: ...
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ class SpatialOperator:
|
|||||||
func: Any = ...
|
func: Any = ...
|
||||||
def __init__(self, op: Optional[Any] = ..., func: Optional[Any] = ...) -> None: ...
|
def __init__(self, op: Optional[Any] = ..., func: Optional[Any] = ...) -> None: ...
|
||||||
@property
|
@property
|
||||||
def default_template(self): ...
|
def default_template(self) -> Any: ...
|
||||||
def as_sql(self, connection: Any, lookup: Any, template_params: Any, sql_params: Any) -> _AsSqlType: ...
|
def as_sql(self, connection: Any, lookup: Any, template_params: Any, sql_params: Any) -> _AsSqlType: ...
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ class GeoAggregate(Aggregate):
|
|||||||
function: Any = ...
|
function: Any = ...
|
||||||
is_extent: bool = ...
|
is_extent: bool = ...
|
||||||
@property
|
@property
|
||||||
def output_field(self): ...
|
def output_field(self) -> Any: ...
|
||||||
def as_sql(
|
def as_sql(
|
||||||
self, compiler: Any, connection: Any, function: Optional[Any] = ..., **extra_context: Any
|
self, compiler: Any, connection: Any, function: Optional[Any] = ..., **extra_context: Any
|
||||||
) -> _AsSqlType: ...
|
) -> _AsSqlType: ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
def resolve_expression(
|
def resolve_expression(
|
||||||
self,
|
self,
|
||||||
query: Optional[Any] = ...,
|
query: Optional[Any] = ...,
|
||||||
@@ -19,7 +19,7 @@ class GeoAggregate(Aggregate):
|
|||||||
reuse: Optional[Any] = ...,
|
reuse: Optional[Any] = ...,
|
||||||
summarize: bool = ...,
|
summarize: bool = ...,
|
||||||
for_save: bool = ...,
|
for_save: bool = ...,
|
||||||
): ...
|
) -> Any: ...
|
||||||
|
|
||||||
class Collect(GeoAggregate):
|
class Collect(GeoAggregate):
|
||||||
name: str = ...
|
name: str = ...
|
||||||
|
|||||||
@@ -44,18 +44,18 @@ class BaseSpatialField(Field[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[_ValidatorCallable] = ...,
|
validators: Iterable[_ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
def deconstruct(self): ...
|
def deconstruct(self) -> Any: ...
|
||||||
def db_type(self, connection: Any): ...
|
def db_type(self, connection: Any) -> Any: ...
|
||||||
def spheroid(self, connection: Any): ...
|
def spheroid(self, connection: Any) -> Any: ...
|
||||||
def units(self, connection: Any): ...
|
def units(self, connection: Any) -> Any: ...
|
||||||
def units_name(self, connection: Any): ...
|
def units_name(self, connection: Any) -> Any: ...
|
||||||
def geodetic(self, connection: Any): ...
|
def geodetic(self, connection: Any) -> Any: ...
|
||||||
def get_placeholder(self, value: Any, compiler: Any, connection: Any): ...
|
def get_placeholder(self, value: Any, compiler: Any, connection: Any) -> Any: ...
|
||||||
def get_srid(self, obj: Any): ...
|
def get_srid(self, obj: Any) -> Any: ...
|
||||||
def get_db_prep_value(self, value: Any, connection: Any, *args: Any, **kwargs: Any): ...
|
def get_db_prep_value(self, value: Any, connection: Any, *args: Any, **kwargs: Any) -> Any: ...
|
||||||
def get_raster_prep_value(self, value: Any, is_candidate: Any): ...
|
def get_raster_prep_value(self, value: Any, is_candidate: Any) -> Any: ...
|
||||||
def get_prep_value(self, value: Any): ...
|
def get_prep_value(self, value: Any) -> Any: ...
|
||||||
|
|
||||||
class GeometryField(BaseSpatialField):
|
class GeometryField(BaseSpatialField):
|
||||||
description: Any = ...
|
description: Any = ...
|
||||||
@@ -94,10 +94,10 @@ class GeometryField(BaseSpatialField):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[_ValidatorCallable] = ...,
|
validators: Iterable[_ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
def deconstruct(self): ...
|
def deconstruct(self) -> Any: ...
|
||||||
def formfield(self, **kwargs: Any): ... # type: ignore[override]
|
def formfield(self, **kwargs: Any) -> Any: ... # type: ignore[override]
|
||||||
def select_format(self, compiler: Any, sql: Any, params: Any): ...
|
def select_format(self, compiler: Any, sql: Any, params: Any) -> Any: ...
|
||||||
|
|
||||||
class PointField(GeometryField):
|
class PointField(GeometryField):
|
||||||
geom_type: str = ...
|
geom_type: str = ...
|
||||||
@@ -143,13 +143,13 @@ class GeometryCollectionField(GeometryField):
|
|||||||
|
|
||||||
class ExtentField(Field):
|
class ExtentField(Field):
|
||||||
description: Any = ...
|
description: Any = ...
|
||||||
def get_internal_type(self): ...
|
def get_internal_type(self) -> Any: ...
|
||||||
def select_format(self, compiler: Any, sql: Any, params: Any): ...
|
def select_format(self, compiler: Any, sql: Any, params: Any) -> Any: ...
|
||||||
|
|
||||||
class RasterField(BaseSpatialField):
|
class RasterField(BaseSpatialField):
|
||||||
description: Any = ...
|
description: Any = ...
|
||||||
geom_type: str = ...
|
geom_type: str = ...
|
||||||
geography: bool = ...
|
geography: bool = ...
|
||||||
def db_type(self, connection: Any): ...
|
def db_type(self, connection: Any) -> Any: ...
|
||||||
def from_db_value(self, value: Any, expression: Any, connection: Any): ...
|
def from_db_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def get_transform(self, name: Any): ...
|
def get_transform(self, name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -11,30 +11,30 @@ class GeoFuncMixin:
|
|||||||
geom_param_pos: Any = ...
|
geom_param_pos: Any = ...
|
||||||
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
def __init__(self, *expressions: Any, **extra: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def geo_field(self): ...
|
def geo_field(self) -> Any: ...
|
||||||
def as_sql(
|
def as_sql(
|
||||||
self, compiler: Any, connection: Any, function: Optional[Any] = ..., **extra_context: Any
|
self, compiler: Any, connection: Any, function: Optional[Any] = ..., **extra_context: Any
|
||||||
) -> _AsSqlType: ...
|
) -> _AsSqlType: ...
|
||||||
def resolve_expression(self, *args: Any, **kwargs: Any): ...
|
def resolve_expression(self, *args: Any, **kwargs: Any) -> Any: ...
|
||||||
|
|
||||||
class GeoFunc(GeoFuncMixin, Func): ...
|
class GeoFunc(GeoFuncMixin, Func): ...
|
||||||
|
|
||||||
class GeomOutputGeoFunc(GeoFunc):
|
class GeomOutputGeoFunc(GeoFunc):
|
||||||
@property
|
@property
|
||||||
def output_field(self): ...
|
def output_field(self) -> Any: ...
|
||||||
|
|
||||||
class SQLiteDecimalToFloatMixin:
|
class SQLiteDecimalToFloatMixin:
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class OracleToleranceMixin:
|
class OracleToleranceMixin:
|
||||||
tolerance: float = ...
|
tolerance: float = ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Area(OracleToleranceMixin, GeoFunc):
|
class Area(OracleToleranceMixin, GeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
@property
|
@property
|
||||||
def output_field(self): ...
|
def output_field(self) -> Any: ...
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Azimuth(GeoFunc):
|
class Azimuth(GeoFunc):
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
@@ -46,13 +46,13 @@ class AsGeoJSON(GeoFunc):
|
|||||||
def __init__(
|
def __init__(
|
||||||
self, expression: Any, bbox: bool = ..., crs: bool = ..., precision: int = ..., **extra: Any
|
self, expression: Any, bbox: bool = ..., crs: bool = ..., precision: int = ..., **extra: Any
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class AsGML(GeoFunc):
|
class AsGML(GeoFunc):
|
||||||
geom_param_pos: Any = ...
|
geom_param_pos: Any = ...
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
def __init__(self, expression: Any, version: int = ..., precision: int = ..., **extra: Any) -> None: ...
|
def __init__(self, expression: Any, version: int = ..., precision: int = ..., **extra: Any) -> None: ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class AsKML(GeoFunc):
|
class AsKML(GeoFunc):
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
@@ -72,7 +72,7 @@ class AsWKT(GeoFunc):
|
|||||||
|
|
||||||
class BoundingCircle(OracleToleranceMixin, GeomOutputGeoFunc):
|
class BoundingCircle(OracleToleranceMixin, GeomOutputGeoFunc):
|
||||||
def __init__(self, expression: Any, num_seg: int = ..., **extra: Any) -> None: ...
|
def __init__(self, expression: Any, num_seg: int = ..., **extra: Any) -> None: ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Centroid(OracleToleranceMixin, GeomOutputGeoFunc):
|
class Centroid(OracleToleranceMixin, GeomOutputGeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
@@ -83,15 +83,15 @@ class Difference(OracleToleranceMixin, GeomOutputGeoFunc):
|
|||||||
|
|
||||||
class DistanceResultMixin:
|
class DistanceResultMixin:
|
||||||
@property
|
@property
|
||||||
def output_field(self): ...
|
def output_field(self) -> Any: ...
|
||||||
def source_is_geography(self): ...
|
def source_is_geography(self) -> Any: ...
|
||||||
|
|
||||||
class Distance(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
class Distance(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
||||||
geom_param_pos: Any = ...
|
geom_param_pos: Any = ...
|
||||||
spheroid: Any = ...
|
spheroid: Any = ...
|
||||||
def __init__(self, expr1: Any, expr2: Any, spheroid: Optional[Any] = ..., **extra: Any) -> None: ...
|
def __init__(self, expr1: Any, expr2: Any, spheroid: Optional[Any] = ..., **extra: Any) -> None: ...
|
||||||
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Envelope(GeomOutputGeoFunc):
|
class Envelope(GeomOutputGeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
@@ -102,7 +102,7 @@ class ForcePolygonCW(GeomOutputGeoFunc):
|
|||||||
class GeoHash(GeoFunc):
|
class GeoHash(GeoFunc):
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
def __init__(self, expression: Any, precision: Optional[Any] = ..., **extra: Any) -> None: ...
|
def __init__(self, expression: Any, precision: Optional[Any] = ..., **extra: Any) -> None: ...
|
||||||
def as_mysql(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_mysql(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class GeometryDistance(GeoFunc):
|
class GeometryDistance(GeoFunc):
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
@@ -118,13 +118,13 @@ class Intersection(OracleToleranceMixin, GeomOutputGeoFunc):
|
|||||||
class IsValid(OracleToleranceMixin, GeoFuncMixin, StandardTransform):
|
class IsValid(OracleToleranceMixin, GeoFuncMixin, StandardTransform):
|
||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_oracle(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
class Length(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
||||||
spheroid: Any = ...
|
spheroid: Any = ...
|
||||||
def __init__(self, expr1: Any, spheroid: bool = ..., **extra: Any) -> None: ...
|
def __init__(self, expr1: Any, spheroid: bool = ..., **extra: Any) -> None: ...
|
||||||
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class LineLocatePoint(GeoFunc):
|
class LineLocatePoint(GeoFunc):
|
||||||
output_field: Any = ...
|
output_field: Any = ...
|
||||||
@@ -147,8 +147,8 @@ class NumPoints(GeoFunc):
|
|||||||
|
|
||||||
class Perimeter(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
class Perimeter(DistanceResultMixin, OracleToleranceMixin, GeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_postgresql(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class PointOnSurface(OracleToleranceMixin, GeomOutputGeoFunc):
|
class PointOnSurface(OracleToleranceMixin, GeomOutputGeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
@@ -170,7 +170,7 @@ class Transform(GeomOutputGeoFunc):
|
|||||||
def __init__(self, expression: Any, srid: Any, **extra: Any) -> None: ...
|
def __init__(self, expression: Any, srid: Any, **extra: Any) -> None: ...
|
||||||
|
|
||||||
class Translate(Scale):
|
class Translate(Scale):
|
||||||
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any): ...
|
def as_sqlite(self, compiler: Any, connection: Any, **extra_context: Any) -> Any: ...
|
||||||
|
|
||||||
class Union(OracleToleranceMixin, GeomOutputGeoFunc):
|
class Union(OracleToleranceMixin, GeomOutputGeoFunc):
|
||||||
arity: int = ...
|
arity: int = ...
|
||||||
|
|||||||
@@ -14,10 +14,10 @@ class GISLookup(Lookup):
|
|||||||
def __init__(self, lhs: Any, rhs: Any) -> None: ...
|
def __init__(self, lhs: Any, rhs: Any) -> None: ...
|
||||||
def process_rhs_params(self) -> None: ...
|
def process_rhs_params(self) -> None: ...
|
||||||
def process_band_indices(self, only_lhs: bool = ...) -> None: ...
|
def process_band_indices(self, only_lhs: bool = ...) -> None: ...
|
||||||
def get_db_prep_lookup(self, value: Any, connection: Any): ...
|
def get_db_prep_lookup(self, value: Any, connection: Any) -> Any: ...
|
||||||
rhs: Any = ...
|
rhs: Any = ...
|
||||||
def process_rhs(self, compiler: Any, connection: Any): ...
|
def process_rhs(self, compiler: Any, connection: Any) -> Any: ...
|
||||||
def get_rhs_op(self, connection: Any, rhs: Any): ...
|
def get_rhs_op(self, connection: Any, rhs: Any) -> Any: ...
|
||||||
|
|
||||||
class OverlapsLeftLookup(GISLookup):
|
class OverlapsLeftLookup(GISLookup):
|
||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
@@ -86,7 +86,7 @@ class RelateLookup(GISLookup):
|
|||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
sql_template: str = ...
|
sql_template: str = ...
|
||||||
pattern_regex: Any = ...
|
pattern_regex: Any = ...
|
||||||
def process_rhs(self, compiler: Any, connection: Any): ...
|
def process_rhs(self, compiler: Any, connection: Any) -> Any: ...
|
||||||
|
|
||||||
class TouchesLookup(GISLookup):
|
class TouchesLookup(GISLookup):
|
||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
@@ -98,13 +98,13 @@ class DistanceLookupBase(GISLookup):
|
|||||||
distance: bool = ...
|
distance: bool = ...
|
||||||
sql_template: str = ...
|
sql_template: str = ...
|
||||||
def process_rhs_params(self) -> None: ...
|
def process_rhs_params(self) -> None: ...
|
||||||
def process_distance(self, compiler: Any, connection: Any): ...
|
def process_distance(self, compiler: Any, connection: Any) -> Any: ...
|
||||||
|
|
||||||
class DWithinLookup(DistanceLookupBase):
|
class DWithinLookup(DistanceLookupBase):
|
||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
sql_template: str = ...
|
sql_template: str = ...
|
||||||
def process_distance(self, compiler: Any, connection: Any): ...
|
def process_distance(self, compiler: Any, connection: Any) -> Any: ...
|
||||||
def process_rhs(self, compiler: Any, connection: Any): ...
|
def process_rhs(self, compiler: Any, connection: Any) -> Any: ...
|
||||||
|
|
||||||
class DistanceLookupFromFunction(DistanceLookupBase): ...
|
class DistanceLookupFromFunction(DistanceLookupBase): ...
|
||||||
|
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ from django.db.models.query_utils import DeferredAttribute
|
|||||||
|
|
||||||
class SpatialProxy(DeferredAttribute):
|
class SpatialProxy(DeferredAttribute):
|
||||||
def __init__(self, klass: Any, field: Any, load_func: Optional[Any] = ...) -> None: ...
|
def __init__(self, klass: Any, field: Any, load_func: Optional[Any] = ...) -> None: ...
|
||||||
def __get__(self, instance: Any, cls: Optional[Any] = ...): ...
|
def __get__(self, instance: Any, cls: Optional[Any] = ...) -> Any: ...
|
||||||
def __set__(self, instance: Any, value: Any): ...
|
def __set__(self, instance: Any, value: Any) -> Any: ...
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ from django.db import models as models
|
|||||||
class AreaField(models.FloatField):
|
class AreaField(models.FloatField):
|
||||||
geo_field: Any = ...
|
geo_field: Any = ...
|
||||||
def __init__(self, geo_field: Any) -> None: ...
|
def __init__(self, geo_field: Any) -> None: ...
|
||||||
def get_prep_value(self, value: Any): ...
|
def get_prep_value(self, value: Any) -> Any: ...
|
||||||
def get_db_prep_value(self, value: Any, connection: Any, prepared: bool = ...): ...
|
def get_db_prep_value(self, value: Any, connection: Any, prepared: bool = ...) -> Any: ...
|
||||||
def from_db_value(self, value: Any, expression: Any, connection: Any): ...
|
def from_db_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def get_internal_type(self): ...
|
def get_internal_type(self) -> Any: ...
|
||||||
|
|
||||||
class DistanceField(models.FloatField):
|
class DistanceField(models.FloatField):
|
||||||
geo_field: Any = ...
|
geo_field: Any = ...
|
||||||
def __init__(self, geo_field: Any) -> None: ...
|
def __init__(self, geo_field: Any) -> None: ...
|
||||||
def get_prep_value(self, value: Any): ...
|
def get_prep_value(self, value: Any) -> Any: ...
|
||||||
def get_db_prep_value(self, value: Any, connection: Any, prepared: bool = ...): ...
|
def get_db_prep_value(self, value: Any, connection: Any, prepared: bool = ...) -> Any: ...
|
||||||
def from_db_value(self, value: Any, expression: Any, connection: Any): ...
|
def from_db_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def get_internal_type(self): ...
|
def get_internal_type(self) -> Any: ...
|
||||||
|
|||||||
@@ -4,26 +4,26 @@ from django.contrib.syndication.views import Feed as BaseFeed
|
|||||||
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
|
from django.utils.feedgenerator import Atom1Feed, Rss201rev2Feed
|
||||||
|
|
||||||
class GeoFeedMixin:
|
class GeoFeedMixin:
|
||||||
def georss_coords(self, coords: Any): ...
|
def georss_coords(self, coords: Any) -> Any: ...
|
||||||
def add_georss_point(self, handler: Any, coords: Any, w3c_geo: bool = ...) -> None: ...
|
def add_georss_point(self, handler: Any, coords: Any, w3c_geo: bool = ...) -> None: ...
|
||||||
def add_georss_element(self, handler: Any, item: Any, w3c_geo: bool = ...) -> None: ...
|
def add_georss_element(self, handler: Any, item: Any, w3c_geo: bool = ...) -> None: ...
|
||||||
|
|
||||||
class GeoRSSFeed(Rss201rev2Feed, GeoFeedMixin):
|
class GeoRSSFeed(Rss201rev2Feed, GeoFeedMixin):
|
||||||
def rss_attributes(self): ...
|
def rss_attributes(self) -> Any: ...
|
||||||
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
||||||
def add_root_elements(self, handler: Any) -> None: ...
|
def add_root_elements(self, handler: Any) -> None: ...
|
||||||
|
|
||||||
class GeoAtom1Feed(Atom1Feed, GeoFeedMixin):
|
class GeoAtom1Feed(Atom1Feed, GeoFeedMixin):
|
||||||
def root_attributes(self): ...
|
def root_attributes(self) -> Any: ...
|
||||||
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
||||||
def add_root_elements(self, handler: Any) -> None: ...
|
def add_root_elements(self, handler: Any) -> None: ...
|
||||||
|
|
||||||
class W3CGeoFeed(Rss201rev2Feed, GeoFeedMixin):
|
class W3CGeoFeed(Rss201rev2Feed, GeoFeedMixin):
|
||||||
def rss_attributes(self): ...
|
def rss_attributes(self) -> Any: ...
|
||||||
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
def add_item_elements(self, handler: Any, item: Any) -> None: ...
|
||||||
def add_root_elements(self, handler: Any) -> None: ...
|
def add_root_elements(self, handler: Any) -> None: ...
|
||||||
|
|
||||||
class Feed(BaseFeed):
|
class Feed(BaseFeed):
|
||||||
feed_type: Any = ...
|
feed_type: Any = ...
|
||||||
def feed_extra_kwargs(self, obj: Any): ...
|
def feed_extra_kwargs(self, obj: Any) -> Any: ...
|
||||||
def item_extra_kwargs(self, item: Any): ...
|
def item_extra_kwargs(self, item: Any) -> Any: ...
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ class GeometryField(forms.Field):
|
|||||||
default_error_messages: Any = ...
|
default_error_messages: Any = ...
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
def __init__(self, *, srid: Optional[Any] = ..., geom_type: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
def __init__(self, *, srid: Optional[Any] = ..., geom_type: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
||||||
def to_python(self, value: Any): ...
|
def to_python(self, value: Any) -> Any: ...
|
||||||
def clean(self, value: Any): ...
|
def clean(self, value: Any) -> Any: ...
|
||||||
def has_changed(self, initial: Any, data: Any): ...
|
def has_changed(self, initial: Any, data: Any) -> Any: ...
|
||||||
|
|
||||||
class GeometryCollectionField(GeometryField):
|
class GeometryCollectionField(GeometryField):
|
||||||
geom_type: str = ...
|
geom_type: str = ...
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ class BaseGeometryWidget(Widget):
|
|||||||
template_name: str = ...
|
template_name: str = ...
|
||||||
attrs: Any = ...
|
attrs: Any = ...
|
||||||
def __init__(self, attrs: Optional[Any] = ...) -> None: ...
|
def __init__(self, attrs: Optional[Any] = ...) -> None: ...
|
||||||
def serialize(self, value: Any): ...
|
def serialize(self, value: Any) -> Any: ...
|
||||||
def deserialize(self, value: Any): ...
|
def deserialize(self, value: Any) -> Any: ...
|
||||||
def get_context(self, name: Any, value: Any, attrs: Any): ...
|
def get_context(self, name: Any, value: Any, attrs: Any) -> Any: ...
|
||||||
|
|
||||||
class OpenLayersWidget(BaseGeometryWidget):
|
class OpenLayersWidget(BaseGeometryWidget):
|
||||||
template_name: str = ...
|
template_name: str = ...
|
||||||
@@ -26,8 +26,8 @@ class OpenLayersWidget(BaseGeometryWidget):
|
|||||||
class Media:
|
class Media:
|
||||||
css: Any = ...
|
css: Any = ...
|
||||||
js: Any = ...
|
js: Any = ...
|
||||||
def serialize(self, value: Any): ...
|
def serialize(self, value: Any) -> Any: ...
|
||||||
def deserialize(self, value: Any): ...
|
def deserialize(self, value: Any) -> Any: ...
|
||||||
|
|
||||||
class OSMWidget(OpenLayersWidget):
|
class OSMWidget(OpenLayersWidget):
|
||||||
template_name: str = ...
|
template_name: str = ...
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ class DataSource(GDALBase):
|
|||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
driver: Any = ...
|
driver: Any = ...
|
||||||
def __init__(self, ds_input: Any, ds_driver: bool = ..., write: bool = ..., encoding: str = ...) -> None: ...
|
def __init__(self, ds_input: Any, ds_driver: bool = ..., write: bool = ..., encoding: str = ...) -> None: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def layer_count(self): ...
|
def layer_count(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ class Driver(GDALBase):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def ensure_registered(cls) -> None: ...
|
def ensure_registered(cls) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def driver_count(cls): ...
|
def driver_count(cls) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
|
|||||||
@@ -6,20 +6,20 @@ class OGREnvelope(Structure): ...
|
|||||||
class Envelope:
|
class Envelope:
|
||||||
def __init__(self, *args: Any) -> None: ...
|
def __init__(self, *args: Any) -> None: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
def expand_to_include(self, *args: Any): ...
|
def expand_to_include(self, *args: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def min_x(self): ...
|
def min_x(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def min_y(self): ...
|
def min_y(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def max_x(self): ...
|
def max_x(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def max_y(self): ...
|
def max_y(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ur(self): ...
|
def ur(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ll(self): ...
|
def ll(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
|
|||||||
@@ -6,22 +6,22 @@ class Feature(GDALBase):
|
|||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, feat: Any, layer: Any) -> None: ...
|
def __init__(self, feat: Any, layer: Any) -> None: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def encoding(self): ...
|
def encoding(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def fid(self): ...
|
def fid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def layer_name(self): ...
|
def layer_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_fields(self): ...
|
def num_fields(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def fields(self): ...
|
def fields(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom(self): ...
|
def geom(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_type(self): ...
|
def geom_type(self) -> Any: ...
|
||||||
def get(self, field: Any): ...
|
def get(self, field: Any) -> Any: ...
|
||||||
def index(self, field_name: Any): ...
|
def index(self, field_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -6,34 +6,34 @@ class Field(GDALBase):
|
|||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
__class__: Any = ...
|
__class__: Any = ...
|
||||||
def __init__(self, feat: Any, index: Any) -> None: ...
|
def __init__(self, feat: Any, index: Any) -> None: ...
|
||||||
def as_double(self): ...
|
def as_double(self) -> Any: ...
|
||||||
def as_int(self, is_64: bool = ...): ...
|
def as_int(self, is_64: bool = ...) -> Any: ...
|
||||||
def as_string(self): ...
|
def as_string(self) -> Any: ...
|
||||||
def as_datetime(self): ...
|
def as_datetime(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def is_set(self): ...
|
def is_set(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def precision(self): ...
|
def precision(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def type(self): ...
|
def type(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def type_name(self): ...
|
def type_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def width(self): ...
|
def width(self) -> Any: ...
|
||||||
|
|
||||||
class OFTInteger(Field):
|
class OFTInteger(Field):
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def type(self): ...
|
def type(self) -> Any: ...
|
||||||
|
|
||||||
class OFTReal(Field):
|
class OFTReal(Field):
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
|
|
||||||
class OFTString(Field): ...
|
class OFTString(Field): ...
|
||||||
class OFTWideString(Field): ...
|
class OFTWideString(Field): ...
|
||||||
@@ -41,15 +41,15 @@ class OFTBinary(Field): ...
|
|||||||
|
|
||||||
class OFTDate(Field):
|
class OFTDate(Field):
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
|
|
||||||
class OFTDateTime(Field):
|
class OFTDateTime(Field):
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
|
|
||||||
class OFTTime(Field):
|
class OFTTime(Field):
|
||||||
@property
|
@property
|
||||||
def value(self): ...
|
def value(self) -> Any: ...
|
||||||
|
|
||||||
class OFTInteger64(OFTInteger): ...
|
class OFTInteger64(OFTInteger): ...
|
||||||
class OFTIntegerList(Field): ...
|
class OFTIntegerList(Field): ...
|
||||||
|
|||||||
@@ -9,127 +9,127 @@ class OGRGeometry(GDALBase):
|
|||||||
__class__: Any = ...
|
__class__: Any = ...
|
||||||
def __init__(self, geom_input: Any, srs: Optional[Any] = ...) -> None: ...
|
def __init__(self, geom_input: Any, srs: Optional[Any] = ...) -> None: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_bbox(cls, bbox: Any): ...
|
def from_bbox(cls, bbox: Any) -> Any: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_json(geom_input: Any): ...
|
def from_json(geom_input: Any) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_gml(cls, gml_string: Any): ...
|
def from_gml(cls, gml_string: Any) -> Any: ...
|
||||||
def __or__(self, other: Any): ...
|
def __or__(self, other: Any) -> Any: ...
|
||||||
def __and__(self, other: Any): ...
|
def __and__(self, other: Any) -> Any: ...
|
||||||
def __sub__(self, other: Any): ...
|
def __sub__(self, other: Any) -> Any: ...
|
||||||
def __xor__(self, other: Any): ...
|
def __xor__(self, other: Any) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def dimension(self): ...
|
def dimension(self) -> Any: ...
|
||||||
coord_dim: Any = ...
|
coord_dim: Any = ...
|
||||||
@property
|
@property
|
||||||
def geom_count(self): ...
|
def geom_count(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def point_count(self): ...
|
def point_count(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_points(self): ...
|
def num_points(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_coords(self): ...
|
def num_coords(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_type(self): ...
|
def geom_type(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_name(self): ...
|
def geom_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def area(self): ...
|
def area(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def envelope(self): ...
|
def envelope(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def empty(self): ...
|
def empty(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def extent(self): ...
|
def extent(self) -> Any: ...
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
@property
|
@property
|
||||||
def geos(self): ...
|
def geos(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def gml(self): ...
|
def gml(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def hex(self): ...
|
def hex(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def json(self): ...
|
def json(self) -> Any: ...
|
||||||
geojson: Any = ...
|
geojson: Any = ...
|
||||||
@property
|
@property
|
||||||
def kml(self): ...
|
def kml(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def wkb_size(self): ...
|
def wkb_size(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def wkb(self): ...
|
def wkb(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ewkt(self): ...
|
def ewkt(self) -> Any: ...
|
||||||
def clone(self): ...
|
def clone(self) -> Any: ...
|
||||||
def close_rings(self) -> None: ...
|
def close_rings(self) -> None: ...
|
||||||
def transform(self, coord_trans: Any, clone: bool = ...): ...
|
def transform(self, coord_trans: Any, clone: bool = ...) -> Any: ...
|
||||||
def intersects(self, other: Any): ...
|
def intersects(self, other: Any) -> Any: ...
|
||||||
def equals(self, other: Any): ...
|
def equals(self, other: Any) -> Any: ...
|
||||||
def disjoint(self, other: Any): ...
|
def disjoint(self, other: Any) -> Any: ...
|
||||||
def touches(self, other: Any): ...
|
def touches(self, other: Any) -> Any: ...
|
||||||
def crosses(self, other: Any): ...
|
def crosses(self, other: Any) -> Any: ...
|
||||||
def within(self, other: Any): ...
|
def within(self, other: Any) -> Any: ...
|
||||||
def contains(self, other: Any): ...
|
def contains(self, other: Any) -> Any: ...
|
||||||
def overlaps(self, other: Any): ...
|
def overlaps(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def boundary(self): ...
|
def boundary(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def convex_hull(self): ...
|
def convex_hull(self) -> Any: ...
|
||||||
def difference(self, other: Any): ...
|
def difference(self, other: Any) -> Any: ...
|
||||||
def intersection(self, other: Any): ...
|
def intersection(self, other: Any) -> Any: ...
|
||||||
def sym_difference(self, other: Any): ...
|
def sym_difference(self, other: Any) -> Any: ...
|
||||||
def union(self, other: Any): ...
|
def union(self, other: Any) -> Any: ...
|
||||||
|
|
||||||
class Point(OGRGeometry):
|
class Point(OGRGeometry):
|
||||||
@property
|
@property
|
||||||
def x(self): ...
|
def x(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def y(self): ...
|
def y(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def z(self): ...
|
def z(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
|
|
||||||
class LineString(OGRGeometry):
|
class LineString(OGRGeometry):
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
@property
|
@property
|
||||||
def x(self): ...
|
def x(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def y(self): ...
|
def y(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def z(self): ...
|
def z(self) -> Any: ...
|
||||||
|
|
||||||
class LinearRing(LineString): ...
|
class LinearRing(LineString): ...
|
||||||
|
|
||||||
class Polygon(OGRGeometry):
|
class Polygon(OGRGeometry):
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def shell(self): ...
|
def shell(self) -> Any: ...
|
||||||
exterior_ring: Any = ...
|
exterior_ring: Any = ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
@property
|
@property
|
||||||
def point_count(self): ...
|
def point_count(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def centroid(self): ...
|
def centroid(self) -> Any: ...
|
||||||
|
|
||||||
class GeometryCollection(OGRGeometry):
|
class GeometryCollection(OGRGeometry):
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
def add(self, geom: Any) -> None: ...
|
def add(self, geom: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def point_count(self): ...
|
def point_count(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
|
|
||||||
class MultiPoint(GeometryCollection): ...
|
class MultiPoint(GeometryCollection): ...
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ class OGRGeomType:
|
|||||||
def __init__(self, type_input: Any) -> None: ...
|
def __init__(self, type_input: Any) -> None: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def django(self): ...
|
def django(self) -> Any: ...
|
||||||
def to_multi(self) -> None: ...
|
def to_multi(self) -> None: ...
|
||||||
|
|||||||
@@ -5,28 +5,28 @@ from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|||||||
class Layer(GDALBase):
|
class Layer(GDALBase):
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, layer_ptr: Any, ds: Any) -> None: ...
|
def __init__(self, layer_ptr: Any, ds: Any) -> None: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def extent(self): ...
|
def extent(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_fields(self): ...
|
def num_fields(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_type(self): ...
|
def geom_type(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def srs(self): ...
|
def srs(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def fields(self): ...
|
def fields(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def field_types(self): ...
|
def field_types(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def field_widths(self): ...
|
def field_widths(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def field_precisions(self): ...
|
def field_precisions(self) -> Any: ...
|
||||||
spatial_filter: Any = ...
|
spatial_filter: Any = ...
|
||||||
def get_fields(self, field_name: Any): ...
|
def get_fields(self, field_name: Any) -> Any: ...
|
||||||
def get_geoms(self, geos: bool = ...): ...
|
def get_geoms(self, geos: bool = ...) -> Any: ...
|
||||||
def test_capability(self, capability: Any): ...
|
def test_capability(self, capability: Any) -> Any: ...
|
||||||
|
|||||||
@@ -7,15 +7,15 @@ lib_names: Any
|
|||||||
lgdal: Any
|
lgdal: Any
|
||||||
lwingdal: Any
|
lwingdal: Any
|
||||||
|
|
||||||
def std_call(func: Any): ...
|
def std_call(func: Any) -> Any: ...
|
||||||
def gdal_version(): ...
|
def gdal_version() -> Any: ...
|
||||||
def gdal_full_version(): ...
|
def gdal_full_version() -> Any: ...
|
||||||
def gdal_version_info(): ...
|
def gdal_version_info() -> Any: ...
|
||||||
|
|
||||||
GDAL_VERSION: Any
|
GDAL_VERSION: Any
|
||||||
CPLErrorHandler: Any
|
CPLErrorHandler: Any
|
||||||
|
|
||||||
def err_handler(error_class: Any, error_number: Any, message: Any) -> None: ...
|
def err_handler(error_class: Any, error_number: Any, message: Any) -> None: ...
|
||||||
def function(name: Any, args: Any, restype: Any): ...
|
def function(name: Any, args: Any, restype: Any) -> Any: ...
|
||||||
|
|
||||||
set_error_handler: Any
|
set_error_handler: Any
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def arg_byref(args: Any, offset: int = ...): ...
|
def arg_byref(args: Any, offset: int = ...) -> Any: ...
|
||||||
def ptr_byref(args: Any, offset: int = ...): ...
|
def ptr_byref(args: Any, offset: int = ...) -> Any: ...
|
||||||
def check_const_string(result: Any, func: Any, cargs: Any, offset: Optional[Any] = ..., cpl: bool = ...): ...
|
def check_const_string(result: Any, func: Any, cargs: Any, offset: Optional[Any] = ..., cpl: bool = ...) -> Any: ...
|
||||||
def check_string(result: Any, func: Any, cargs: Any, offset: int = ..., str_result: bool = ...): ...
|
def check_string(result: Any, func: Any, cargs: Any, offset: int = ..., str_result: bool = ...) -> Any: ...
|
||||||
def check_envelope(result: Any, func: Any, cargs: Any, offset: int = ...): ...
|
def check_envelope(result: Any, func: Any, cargs: Any, offset: int = ...) -> Any: ...
|
||||||
def check_geom(result: Any, func: Any, cargs: Any): ...
|
def check_geom(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_geom_offset(result: Any, func: Any, cargs: Any, offset: int = ...): ...
|
def check_geom_offset(result: Any, func: Any, cargs: Any, offset: int = ...) -> Any: ...
|
||||||
def check_srs(result: Any, func: Any, cargs: Any): ...
|
def check_srs(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_arg_errcode(result: Any, func: Any, cargs: Any, cpl: bool = ...): ...
|
def check_arg_errcode(result: Any, func: Any, cargs: Any, cpl: bool = ...) -> Any: ...
|
||||||
def check_errcode(result: Any, func: Any, cargs: Any, cpl: bool = ...) -> None: ...
|
def check_errcode(result: Any, func: Any, cargs: Any, cpl: bool = ...) -> None: ...
|
||||||
def check_pointer(result: Any, func: Any, cargs: Any): ...
|
def check_pointer(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_str_arg(result: Any, func: Any, cargs: Any): ...
|
def check_str_arg(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -3,18 +3,18 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
class gdal_char_p(c_char_p): ...
|
class gdal_char_p(c_char_p): ...
|
||||||
|
|
||||||
def bool_output(func: Any, argtypes: Any, errcheck: Optional[Any] = ...): ...
|
def bool_output(func: Any, argtypes: Any, errcheck: Optional[Any] = ...) -> Any: ...
|
||||||
def double_output(func: Any, argtypes: Any, errcheck: bool = ..., strarg: bool = ..., cpl: bool = ...): ...
|
def double_output(func: Any, argtypes: Any, errcheck: bool = ..., strarg: bool = ..., cpl: bool = ...) -> Any: ...
|
||||||
def geom_output(func: Any, argtypes: Any, offset: Optional[Any] = ...): ...
|
def geom_output(func: Any, argtypes: Any, offset: Optional[Any] = ...) -> Any: ...
|
||||||
def int_output(func: Any, argtypes: Any, errcheck: Optional[Any] = ...): ...
|
def int_output(func: Any, argtypes: Any, errcheck: Optional[Any] = ...) -> Any: ...
|
||||||
def int64_output(func: Any, argtypes: Any): ...
|
def int64_output(func: Any, argtypes: Any) -> Any: ...
|
||||||
def srs_output(func: Any, argtypes: Any): ...
|
def srs_output(func: Any, argtypes: Any) -> Any: ...
|
||||||
def const_string_output(
|
def const_string_output(
|
||||||
func: Any, argtypes: Any, offset: Optional[Any] = ..., decoding: Optional[Any] = ..., cpl: bool = ...
|
func: Any, argtypes: Any, offset: Optional[Any] = ..., decoding: Optional[Any] = ..., cpl: bool = ...
|
||||||
): ...
|
) -> Any: ...
|
||||||
def string_output(
|
def string_output(
|
||||||
func: Any, argtypes: Any, offset: int = ..., str_result: bool = ..., decoding: Optional[Any] = ...
|
func: Any, argtypes: Any, offset: int = ..., str_result: bool = ..., decoding: Optional[Any] = ...
|
||||||
): ...
|
) -> Any: ...
|
||||||
def void_output(func: Any, argtypes: Any, errcheck: bool = ..., cpl: bool = ...): ...
|
def void_output(func: Any, argtypes: Any, errcheck: bool = ..., cpl: bool = ...) -> Any: ...
|
||||||
def voidptr_output(func: Any, argtypes: Any, errcheck: bool = ...): ...
|
def voidptr_output(func: Any, argtypes: Any, errcheck: bool = ...) -> Any: ...
|
||||||
def chararray_output(func: Any, argtypes: Any, errcheck: bool = ...): ...
|
def chararray_output(func: Any, argtypes: Any, errcheck: bool = ...) -> Any: ...
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def env_func(f: Any, argtypes: Any): ...
|
def env_func(f: Any, argtypes: Any) -> Any: ...
|
||||||
def pnt_func(f: Any): ...
|
def pnt_func(f: Any) -> Any: ...
|
||||||
def topology_func(f: Any): ...
|
def topology_func(f: Any) -> Any: ...
|
||||||
|
|
||||||
from_json: Any
|
from_json: Any
|
||||||
to_json: Any
|
to_json: Any
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def srs_double(f: Any): ...
|
def srs_double(f: Any) -> Any: ...
|
||||||
def units_func(f: Any): ...
|
def units_func(f: Any) -> Any: ...
|
||||||
|
|
||||||
clone_srs: Any
|
clone_srs: Any
|
||||||
new_srs: Any
|
new_srs: Any
|
||||||
|
|||||||
@@ -6,28 +6,28 @@ class GDALBand(GDALRasterBase):
|
|||||||
source: Any = ...
|
source: Any = ...
|
||||||
def __init__(self, source: Any, index: Any) -> None: ...
|
def __init__(self, source: Any, index: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def description(self): ...
|
def description(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def width(self): ...
|
def width(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def height(self): ...
|
def height(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def pixel_count(self): ...
|
def pixel_count(self) -> Any: ...
|
||||||
def statistics(self, refresh: bool = ..., approximate: bool = ...): ...
|
def statistics(self, refresh: bool = ..., approximate: bool = ...) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def min(self): ...
|
def min(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def max(self): ...
|
def max(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def mean(self): ...
|
def mean(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def std(self): ...
|
def std(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def nodata_value(self): ...
|
def nodata_value(self) -> Any: ...
|
||||||
@nodata_value.setter
|
@nodata_value.setter
|
||||||
def nodata_value(self, value: Any) -> None: ...
|
def nodata_value(self, value: Any) -> None: ...
|
||||||
def datatype(self, as_string: bool = ...): ...
|
def datatype(self, as_string: bool = ...) -> Any: ...
|
||||||
def color_interp(self, as_string: bool = ...): ...
|
def color_interp(self, as_string: bool = ...) -> Any: ...
|
||||||
def data(
|
def data(
|
||||||
self,
|
self,
|
||||||
data: Optional[Any] = ...,
|
data: Optional[Any] = ...,
|
||||||
@@ -35,11 +35,11 @@ class GDALBand(GDALRasterBase):
|
|||||||
size: Optional[Any] = ...,
|
size: Optional[Any] = ...,
|
||||||
shape: Optional[Any] = ...,
|
shape: Optional[Any] = ...,
|
||||||
as_memoryview: bool = ...,
|
as_memoryview: bool = ...,
|
||||||
): ...
|
) -> Any: ...
|
||||||
|
|
||||||
class BandList(list):
|
class BandList(list):
|
||||||
source: Any = ...
|
source: Any = ...
|
||||||
def __init__(self, source: Any) -> None: ...
|
def __init__(self, source: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
|
|||||||
@@ -4,6 +4,6 @@ from django.contrib.gis.gdal.base import GDALBase as GDALBase
|
|||||||
|
|
||||||
class GDALRasterBase(GDALBase):
|
class GDALRasterBase(GDALBase):
|
||||||
@property
|
@property
|
||||||
def metadata(self): ...
|
def metadata(self) -> Any: ...
|
||||||
@metadata.setter
|
@metadata.setter
|
||||||
def metadata(self, value: Any) -> None: ...
|
def metadata(self, value: Any) -> None: ...
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ class TransformPoint(list):
|
|||||||
indices: Any = ...
|
indices: Any = ...
|
||||||
def __init__(self, raster: Any, prop: Any) -> None: ...
|
def __init__(self, raster: Any, prop: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def x(self): ...
|
def x(self) -> Any: ...
|
||||||
@x.setter
|
@x.setter
|
||||||
def x(self, value: Any) -> None: ...
|
def x(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def y(self): ...
|
def y(self) -> Any: ...
|
||||||
@y.setter
|
@y.setter
|
||||||
def y(self, value: Any) -> None: ...
|
def y(self, value: Any) -> None: ...
|
||||||
|
|
||||||
@@ -19,40 +19,40 @@ class GDALRaster(GDALRasterBase):
|
|||||||
def __init__(self, ds_input: Any, write: bool = ...) -> None: ...
|
def __init__(self, ds_input: Any, write: bool = ...) -> None: ...
|
||||||
def __del__(self) -> None: ...
|
def __del__(self) -> None: ...
|
||||||
@property
|
@property
|
||||||
def vsi_buffer(self): ...
|
def vsi_buffer(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def is_vsi_based(self): ...
|
def is_vsi_based(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def driver(self): ...
|
def driver(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def width(self): ...
|
def width(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def height(self): ...
|
def height(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def srs(self): ...
|
def srs(self) -> Any: ...
|
||||||
@srs.setter
|
@srs.setter
|
||||||
def srs(self, value: Any) -> None: ...
|
def srs(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def srid(self): ...
|
def srid(self) -> Any: ...
|
||||||
@srid.setter
|
@srid.setter
|
||||||
def srid(self, value: Any) -> None: ...
|
def srid(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def geotransform(self): ...
|
def geotransform(self) -> Any: ...
|
||||||
@geotransform.setter
|
@geotransform.setter
|
||||||
def geotransform(self, values: Any) -> None: ...
|
def geotransform(self, values: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def origin(self): ...
|
def origin(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def scale(self): ...
|
def scale(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def skew(self): ...
|
def skew(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def extent(self): ...
|
def extent(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def bands(self): ...
|
def bands(self) -> Any: ...
|
||||||
def warp(self, ds_input: Any, resampling: str = ..., max_error: float = ...): ...
|
def warp(self, ds_input: Any, resampling: str = ..., max_error: float = ...) -> Any: ...
|
||||||
def transform(
|
def transform(
|
||||||
self,
|
self,
|
||||||
srs: Any,
|
srs: Any,
|
||||||
@@ -60,6 +60,6 @@ class GDALRaster(GDALRasterBase):
|
|||||||
name: Optional[Any] = ...,
|
name: Optional[Any] = ...,
|
||||||
resampling: str = ...,
|
resampling: str = ...,
|
||||||
max_error: float = ...,
|
max_error: float = ...,
|
||||||
): ...
|
) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def info(self): ...
|
def info(self) -> Any: ...
|
||||||
|
|||||||
@@ -12,54 +12,54 @@ class SpatialReference(GDALBase):
|
|||||||
axis_order: Any = ...
|
axis_order: Any = ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, srs_input: str = ..., srs_type: str = ..., axis_order: Optional[Any] = ...) -> None: ...
|
def __init__(self, srs_input: str = ..., srs_type: str = ..., axis_order: Optional[Any] = ...) -> None: ...
|
||||||
def __getitem__(self, target: Any): ...
|
def __getitem__(self, target: Any) -> Any: ...
|
||||||
def attr_value(self, target: Any, index: int = ...): ...
|
def attr_value(self, target: Any, index: int = ...) -> Any: ...
|
||||||
def auth_name(self, target: Any): ...
|
def auth_name(self, target: Any) -> Any: ...
|
||||||
def auth_code(self, target: Any): ...
|
def auth_code(self, target: Any) -> Any: ...
|
||||||
def clone(self): ...
|
def clone(self) -> Any: ...
|
||||||
def from_esri(self) -> None: ...
|
def from_esri(self) -> None: ...
|
||||||
def identify_epsg(self) -> None: ...
|
def identify_epsg(self) -> None: ...
|
||||||
def to_esri(self) -> None: ...
|
def to_esri(self) -> None: ...
|
||||||
def validate(self) -> None: ...
|
def validate(self) -> None: ...
|
||||||
@property
|
@property
|
||||||
def name(self): ...
|
def name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def srid(self): ...
|
def srid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def linear_name(self): ...
|
def linear_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def linear_units(self): ...
|
def linear_units(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def angular_name(self): ...
|
def angular_name(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def angular_units(self): ...
|
def angular_units(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def units(self): ...
|
def units(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ellipsoid(self): ...
|
def ellipsoid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def semi_major(self): ...
|
def semi_major(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def semi_minor(self): ...
|
def semi_minor(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def inverse_flattening(self): ...
|
def inverse_flattening(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geographic(self): ...
|
def geographic(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def local(self): ...
|
def local(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def projected(self): ...
|
def projected(self) -> Any: ...
|
||||||
def import_epsg(self, epsg: Any) -> None: ...
|
def import_epsg(self, epsg: Any) -> None: ...
|
||||||
def import_proj(self, proj: Any) -> None: ...
|
def import_proj(self, proj: Any) -> None: ...
|
||||||
def import_user_input(self, user_input: Any) -> None: ...
|
def import_user_input(self, user_input: Any) -> None: ...
|
||||||
def import_wkt(self, wkt: Any) -> None: ...
|
def import_wkt(self, wkt: Any) -> None: ...
|
||||||
def import_xml(self, xml: Any) -> None: ...
|
def import_xml(self, xml: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def proj(self): ...
|
def proj(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def proj4(self): ...
|
def proj4(self) -> Any: ...
|
||||||
|
|
||||||
class CoordTransform(GDALBase):
|
class CoordTransform(GDALBase):
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
|
|||||||
@@ -15,15 +15,15 @@ class GeoIP2:
|
|||||||
self, path: Optional[Any] = ..., cache: int = ..., country: Optional[Any] = ..., city: Optional[Any] = ...
|
self, path: Optional[Any] = ..., cache: int = ..., country: Optional[Any] = ..., city: Optional[Any] = ...
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def __del__(self) -> None: ...
|
def __del__(self) -> None: ...
|
||||||
def city(self, query: Any): ...
|
def city(self, query: Any) -> Any: ...
|
||||||
def country_code(self, query: Any): ...
|
def country_code(self, query: Any) -> Any: ...
|
||||||
def country_name(self, query: Any): ...
|
def country_name(self, query: Any) -> Any: ...
|
||||||
def country(self, query: Any): ...
|
def country(self, query: Any) -> Any: ...
|
||||||
def coords(self, query: Any, ordering: Any = ...): ...
|
def coords(self, query: Any, ordering: Any = ...) -> Any: ...
|
||||||
def lon_lat(self, query: Any): ...
|
def lon_lat(self, query: Any) -> Any: ...
|
||||||
def lat_lon(self, query: Any): ...
|
def lat_lon(self, query: Any) -> Any: ...
|
||||||
def geos(self, query: Any): ...
|
def geos(self, query: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def info(self): ...
|
def info(self) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def open(cls, full_path: Any, cache: Any): ...
|
def open(cls, full_path: Any, cache: Any) -> Any: ...
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def City(response: Any): ...
|
def City(response: Any) -> Any: ...
|
||||||
def Country(response: Any): ...
|
def Country(response: Any) -> Any: ...
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ from django.contrib.gis.geos.geometry import LinearGeometryMixin as LinearGeomet
|
|||||||
class GeometryCollection(GEOSGeometry):
|
class GeometryCollection(GEOSGeometry):
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def kml(self): ...
|
def kml(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
|
|
||||||
class MultiPoint(GeometryCollection): ...
|
class MultiPoint(GeometryCollection): ...
|
||||||
|
|||||||
@@ -6,27 +6,27 @@ class GEOSCoordSeq(GEOSBase):
|
|||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
def __init__(self, ptr: Any, z: bool = ...) -> None: ...
|
def __init__(self, ptr: Any, z: bool = ...) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __setitem__(self, index: Any, value: Any) -> None: ...
|
def __setitem__(self, index: Any, value: Any) -> None: ...
|
||||||
def getOrdinate(self, dimension: Any, index: Any): ...
|
def getOrdinate(self, dimension: Any, index: Any) -> Any: ...
|
||||||
def setOrdinate(self, dimension: Any, index: Any, value: Any) -> None: ...
|
def setOrdinate(self, dimension: Any, index: Any, value: Any) -> None: ...
|
||||||
def getX(self, index: Any): ...
|
def getX(self, index: Any) -> Any: ...
|
||||||
def setX(self, index: Any, value: Any) -> None: ...
|
def setX(self, index: Any, value: Any) -> None: ...
|
||||||
def getY(self, index: Any): ...
|
def getY(self, index: Any) -> Any: ...
|
||||||
def setY(self, index: Any, value: Any) -> None: ...
|
def setY(self, index: Any, value: Any) -> None: ...
|
||||||
def getZ(self, index: Any): ...
|
def getZ(self, index: Any) -> Any: ...
|
||||||
def setZ(self, index: Any, value: Any) -> None: ...
|
def setZ(self, index: Any, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def size(self): ...
|
def size(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def dims(self): ...
|
def dims(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def hasz(self): ...
|
def hasz(self) -> Any: ...
|
||||||
def clone(self): ...
|
def clone(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def kml(self): ...
|
def kml(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def is_counterclockwise(self): ...
|
def is_counterclockwise(self) -> Any: ...
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def fromfile(file_h: Any): ...
|
def fromfile(file_h: Any) -> Any: ...
|
||||||
def fromstr(string: Any, **kwargs: Any): ...
|
def fromstr(string: Any, **kwargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -12,127 +12,127 @@ class GEOSGeometryBase(GEOSBase):
|
|||||||
has_cs: bool = ...
|
has_cs: bool = ...
|
||||||
__class__: Any = ...
|
__class__: Any = ...
|
||||||
def __init__(self, ptr: Any, cls: Any) -> None: ...
|
def __init__(self, ptr: Any, cls: Any) -> None: ...
|
||||||
def __copy__(self): ...
|
def __copy__(self) -> Any: ...
|
||||||
def __deepcopy__(self, memodict: Any): ...
|
def __deepcopy__(self, memodict: Any) -> Any: ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_ewkt(ewkt: Any): ...
|
def from_ewkt(ewkt: Any) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_gml(cls, gml_string: Any): ...
|
def from_gml(cls, gml_string: Any) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
def __hash__(self) -> Any: ...
|
def __hash__(self) -> Any: ...
|
||||||
def __or__(self, other: Any): ...
|
def __or__(self, other: Any) -> Any: ...
|
||||||
def __and__(self, other: Any): ...
|
def __and__(self, other: Any) -> Any: ...
|
||||||
def __sub__(self, other: Any): ...
|
def __sub__(self, other: Any) -> Any: ...
|
||||||
def __xor__(self, other: Any): ...
|
def __xor__(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def coord_seq(self): ...
|
def coord_seq(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_type(self): ...
|
def geom_type(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def geom_typeid(self): ...
|
def geom_typeid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_geom(self): ...
|
def num_geom(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_coords(self): ...
|
def num_coords(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_points(self): ...
|
def num_points(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def dims(self): ...
|
def dims(self) -> Any: ...
|
||||||
def normalize(self) -> None: ...
|
def normalize(self) -> None: ...
|
||||||
@property
|
@property
|
||||||
def empty(self): ...
|
def empty(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def hasz(self): ...
|
def hasz(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ring(self): ...
|
def ring(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def simple(self): ...
|
def simple(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def valid(self): ...
|
def valid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def valid_reason(self): ...
|
def valid_reason(self) -> Any: ...
|
||||||
def contains(self, other: Any): ...
|
def contains(self, other: Any) -> Any: ...
|
||||||
def covers(self, other: Any): ...
|
def covers(self, other: Any) -> Any: ...
|
||||||
def crosses(self, other: Any): ...
|
def crosses(self, other: Any) -> Any: ...
|
||||||
def disjoint(self, other: Any): ...
|
def disjoint(self, other: Any) -> Any: ...
|
||||||
def equals(self, other: Any): ...
|
def equals(self, other: Any) -> Any: ...
|
||||||
def equals_exact(self, other: Any, tolerance: float = ...): ...
|
def equals_exact(self, other: Any, tolerance: float = ...) -> Any: ...
|
||||||
def intersects(self, other: Any): ...
|
def intersects(self, other: Any) -> Any: ...
|
||||||
def overlaps(self, other: Any): ...
|
def overlaps(self, other: Any) -> Any: ...
|
||||||
def relate_pattern(self, other: Any, pattern: Any): ...
|
def relate_pattern(self, other: Any, pattern: Any) -> Any: ...
|
||||||
def touches(self, other: Any): ...
|
def touches(self, other: Any) -> Any: ...
|
||||||
def within(self, other: Any): ...
|
def within(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def srid(self): ...
|
def srid(self) -> Any: ...
|
||||||
@srid.setter
|
@srid.setter
|
||||||
def srid(self, srid: Any) -> None: ...
|
def srid(self, srid: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def ewkt(self): ...
|
def ewkt(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def wkt(self): ...
|
def wkt(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def hex(self): ...
|
def hex(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def hexewkb(self): ...
|
def hexewkb(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def json(self): ...
|
def json(self) -> Any: ...
|
||||||
geojson: Any = ...
|
geojson: Any = ...
|
||||||
@property
|
@property
|
||||||
def wkb(self): ...
|
def wkb(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ewkb(self): ...
|
def ewkb(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def kml(self): ...
|
def kml(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def prepared(self): ...
|
def prepared(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def ogr(self): ...
|
def ogr(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def srs(self): ...
|
def srs(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def crs(self): ...
|
def crs(self) -> Any: ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def transform(self, ct: Any, clone: bool = ...): ...
|
def transform(self, ct: Any, clone: bool = ...) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def boundary(self): ...
|
def boundary(self) -> Any: ...
|
||||||
def buffer(self, width: Any, quadsegs: int = ...): ...
|
def buffer(self, width: Any, quadsegs: int = ...) -> Any: ...
|
||||||
def buffer_with_style(
|
def buffer_with_style(
|
||||||
self, width: Any, quadsegs: int = ..., end_cap_style: int = ..., join_style: int = ..., mitre_limit: float = ...
|
self, width: Any, quadsegs: int = ..., end_cap_style: int = ..., join_style: int = ..., mitre_limit: float = ...
|
||||||
): ...
|
) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def centroid(self): ...
|
def centroid(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def convex_hull(self): ...
|
def convex_hull(self) -> Any: ...
|
||||||
def difference(self, other: Any): ...
|
def difference(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def envelope(self): ...
|
def envelope(self) -> Any: ...
|
||||||
def intersection(self, other: Any): ...
|
def intersection(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def point_on_surface(self): ...
|
def point_on_surface(self) -> Any: ...
|
||||||
def relate(self, other: Any): ...
|
def relate(self, other: Any) -> Any: ...
|
||||||
def simplify(self, tolerance: float = ..., preserve_topology: bool = ...): ...
|
def simplify(self, tolerance: float = ..., preserve_topology: bool = ...) -> Any: ...
|
||||||
def sym_difference(self, other: Any): ...
|
def sym_difference(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def unary_union(self): ...
|
def unary_union(self) -> Any: ...
|
||||||
def union(self, other: Any): ...
|
def union(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def area(self): ...
|
def area(self) -> Any: ...
|
||||||
def distance(self, other: Any): ...
|
def distance(self, other: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def extent(self): ...
|
def extent(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def length(self): ...
|
def length(self) -> Any: ...
|
||||||
def clone(self): ...
|
def clone(self) -> Any: ...
|
||||||
|
|
||||||
class LinearGeometryMixin:
|
class LinearGeometryMixin:
|
||||||
def interpolate(self, distance: Any): ...
|
def interpolate(self, distance: Any) -> Any: ...
|
||||||
def interpolate_normalized(self, distance: Any): ...
|
def interpolate_normalized(self, distance: Any) -> Any: ...
|
||||||
def project(self, point: Any): ...
|
def project(self, point: Any) -> Any: ...
|
||||||
def project_normalized(self, point: Any): ...
|
def project_normalized(self, point: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def merged(self): ...
|
def merged(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def closed(self): ...
|
def closed(self) -> Any: ...
|
||||||
|
|
||||||
class GEOSGeometry(GEOSGeometryBase, ListMixin):
|
class GEOSGeometry(GEOSGeometryBase, ListMixin):
|
||||||
srid: Any = ...
|
srid: Any = ...
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ from django.contrib.gis.geos.prototypes.io import WKTWriter as WKTWriter
|
|||||||
from django.contrib.gis.geos.prototypes.io import _WKBReader, _WKTReader
|
from django.contrib.gis.geos.prototypes.io import _WKBReader, _WKTReader
|
||||||
|
|
||||||
class WKBReader(_WKBReader):
|
class WKBReader(_WKBReader):
|
||||||
def read(self, wkb: Any): ...
|
def read(self, wkb: Any) -> Any: ...
|
||||||
|
|
||||||
class WKTReader(_WKTReader):
|
class WKTReader(_WKTReader):
|
||||||
def read(self, wkt: Any): ...
|
def read(self, wkt: Any) -> Any: ...
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
logger: Logger
|
logger: Logger
|
||||||
|
|
||||||
def load_geos(): ...
|
def load_geos() -> Any: ...
|
||||||
|
|
||||||
NOTICEFUNC: Any
|
NOTICEFUNC: Any
|
||||||
|
|
||||||
@@ -38,9 +38,9 @@ class GEOSFuncFactory:
|
|||||||
errcheck: Optional[Any] = ...,
|
errcheck: Optional[Any] = ...,
|
||||||
argtypes: Optional[Any] = ...
|
argtypes: Optional[Any] = ...
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def __call__(self, *args: Any): ...
|
def __call__(self, *args: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def func(self): ...
|
def func(self) -> Any: ...
|
||||||
|
|
||||||
def geos_version(): ...
|
def geos_version() -> Any: ...
|
||||||
def geos_version_tuple(): ...
|
def geos_version_tuple() -> Any: ...
|
||||||
|
|||||||
@@ -7,19 +7,19 @@ class LineString(LinearGeometryMixin, GEOSGeometry):
|
|||||||
has_cs: bool = ...
|
has_cs: bool = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
@property
|
@property
|
||||||
def array(self): ...
|
def array(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def x(self): ...
|
def x(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def y(self): ...
|
def y(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def z(self): ...
|
def z(self) -> Any: ...
|
||||||
|
|
||||||
class LinearRing(LineString):
|
class LinearRing(LineString):
|
||||||
@property
|
@property
|
||||||
def is_counterclockwise(self): ...
|
def is_counterclockwise(self) -> Any: ...
|
||||||
|
|||||||
@@ -2,23 +2,23 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
class ListMixin:
|
class ListMixin:
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __getitem__(self, index: Any): ...
|
def __getitem__(self, index: Any) -> Any: ...
|
||||||
def __delitem__(self, index: Any) -> None: ...
|
def __delitem__(self, index: Any) -> None: ...
|
||||||
def __setitem__(self, index: Any, val: Any) -> None: ...
|
def __setitem__(self, index: Any, val: Any) -> None: ...
|
||||||
def __add__(self, other: Any): ...
|
def __add__(self, other: Any) -> Any: ...
|
||||||
def __radd__(self, other: Any): ...
|
def __radd__(self, other: Any) -> Any: ...
|
||||||
def __iadd__(self, other: Any): ...
|
def __iadd__(self, other: Any) -> Any: ...
|
||||||
def __mul__(self, n: Any): ...
|
def __mul__(self, n: Any) -> Any: ...
|
||||||
def __rmul__(self, n: Any): ...
|
def __rmul__(self, n: Any) -> Any: ...
|
||||||
def __imul__(self, n: Any): ...
|
def __imul__(self, n: Any) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
def __lt__(self, other: Any) -> Any: ...
|
def __lt__(self, other: Any) -> Any: ...
|
||||||
def count(self, val: Any): ...
|
def count(self, val: Any) -> Any: ...
|
||||||
def index(self, val: Any): ...
|
def index(self, val: Any) -> Any: ...
|
||||||
def append(self, val: Any) -> None: ...
|
def append(self, val: Any) -> None: ...
|
||||||
def extend(self, vals: Any) -> None: ...
|
def extend(self, vals: Any) -> None: ...
|
||||||
def insert(self, index: Any, val: Any) -> None: ...
|
def insert(self, index: Any, val: Any) -> None: ...
|
||||||
def pop(self, index: int = ...): ...
|
def pop(self, index: int = ...) -> Any: ...
|
||||||
def remove(self, val: Any) -> None: ...
|
def remove(self, val: Any) -> None: ...
|
||||||
def reverse(self) -> None: ...
|
def reverse(self) -> None: ...
|
||||||
def sort(self, key: Optional[Any] = ..., reverse: bool = ...) -> None: ...
|
def sort(self, key: Optional[Any] = ..., reverse: bool = ...) -> None: ...
|
||||||
|
|||||||
@@ -8,21 +8,21 @@ class Point(GEOSGeometry):
|
|||||||
self, x: Optional[Any] = ..., y: Optional[Any] = ..., z: Optional[Any] = ..., srid: Optional[Any] = ...
|
self, x: Optional[Any] = ..., y: Optional[Any] = ..., z: Optional[Any] = ..., srid: Optional[Any] = ...
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def x(self): ...
|
def x(self) -> Any: ...
|
||||||
@x.setter
|
@x.setter
|
||||||
def x(self, value: Any) -> None: ...
|
def x(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def y(self): ...
|
def y(self) -> Any: ...
|
||||||
@y.setter
|
@y.setter
|
||||||
def y(self, value: Any) -> None: ...
|
def y(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def z(self): ...
|
def z(self) -> Any: ...
|
||||||
@z.setter
|
@z.setter
|
||||||
def z(self, value: Any) -> None: ...
|
def z(self, value: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
@tuple.setter
|
@tuple.setter
|
||||||
def tuple(self, tup: Any) -> None: ...
|
def tuple(self, tup: Any) -> None: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
|
|||||||
class Polygon(GEOSGeometry):
|
class Polygon(GEOSGeometry):
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
def __len__(self): ...
|
def __len__(self) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_bbox(cls, bbox: Any): ...
|
def from_bbox(cls, bbox: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def num_interior_rings(self): ...
|
def num_interior_rings(self) -> Any: ...
|
||||||
exterior_ring: Any = ...
|
exterior_ring: Any = ...
|
||||||
shell: Any = ...
|
shell: Any = ...
|
||||||
@property
|
@property
|
||||||
def tuple(self): ...
|
def tuple(self) -> Any: ...
|
||||||
coords: Any = ...
|
coords: Any = ...
|
||||||
@property
|
@property
|
||||||
def kml(self): ...
|
def kml(self) -> Any: ...
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ class PreparedGeometry(GEOSBase):
|
|||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
ptr: Any = ...
|
ptr: Any = ...
|
||||||
def __init__(self, geom: Any) -> None: ...
|
def __init__(self, geom: Any) -> None: ...
|
||||||
def contains(self, other: Any): ...
|
def contains(self, other: Any) -> Any: ...
|
||||||
def contains_properly(self, other: Any): ...
|
def contains_properly(self, other: Any) -> Any: ...
|
||||||
def covers(self, other: Any): ...
|
def covers(self, other: Any) -> Any: ...
|
||||||
def intersects(self, other: Any): ...
|
def intersects(self, other: Any) -> Any: ...
|
||||||
def crosses(self, other: Any): ...
|
def crosses(self, other: Any) -> Any: ...
|
||||||
def disjoint(self, other: Any): ...
|
def disjoint(self, other: Any) -> Any: ...
|
||||||
def overlaps(self, other: Any): ...
|
def overlaps(self, other: Any) -> Any: ...
|
||||||
def touches(self, other: Any): ...
|
def touches(self, other: Any) -> Any: ...
|
||||||
def within(self, other: Any): ...
|
def within(self, other: Any) -> Any: ...
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ from typing import Any
|
|||||||
|
|
||||||
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
|
||||||
|
|
||||||
def check_cs_op(result: Any, func: Any, cargs: Any): ...
|
def check_cs_op(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_cs_get(result: Any, func: Any, cargs: Any): ...
|
def check_cs_get(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
|
|
||||||
class CsInt(GEOSFuncFactory):
|
class CsInt(GEOSFuncFactory):
|
||||||
argtypes: Any = ...
|
argtypes: Any = ...
|
||||||
@@ -17,7 +17,7 @@ class CsOperation(GEOSFuncFactory):
|
|||||||
class CsOutput(GEOSFuncFactory):
|
class CsOutput(GEOSFuncFactory):
|
||||||
restype: Any = ...
|
restype: Any = ...
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def errcheck(result: Any, func: Any, cargs: Any): ...
|
def errcheck(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
|
|
||||||
cs_clone: Any
|
cs_clone: Any
|
||||||
create_cs: Any
|
create_cs: Any
|
||||||
|
|||||||
@@ -2,10 +2,10 @@ from typing import Any
|
|||||||
|
|
||||||
free: Any
|
free: Any
|
||||||
|
|
||||||
def last_arg_byref(args: Any): ...
|
def last_arg_byref(args: Any) -> Any: ...
|
||||||
def check_dbl(result: Any, func: Any, cargs: Any): ...
|
def check_dbl(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_geom(result: Any, func: Any, cargs: Any): ...
|
def check_geom(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_minus_one(result: Any, func: Any, cargs: Any): ...
|
def check_minus_one(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_predicate(result: Any, func: Any, cargs: Any): ...
|
def check_predicate(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_sized_string(result: Any, func: Any, cargs: Any): ...
|
def check_sized_string(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
def check_string(result: Any, func: Any, cargs: Any): ...
|
def check_string(result: Any, func: Any, cargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -66,28 +66,28 @@ class IOBase(GEOSBase):
|
|||||||
class _WKTReader(IOBase):
|
class _WKTReader(IOBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
def read(self, wkt: Any): ...
|
def read(self, wkt: Any) -> Any: ...
|
||||||
|
|
||||||
class _WKBReader(IOBase):
|
class _WKBReader(IOBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
def read(self, wkb: Any): ...
|
def read(self, wkb: Any) -> Any: ...
|
||||||
|
|
||||||
class WKTWriter(IOBase):
|
class WKTWriter(IOBase):
|
||||||
ptr_type: Any = ...
|
ptr_type: Any = ...
|
||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
def __init__(self, dim: int = ..., trim: bool = ..., precision: Optional[Any] = ...) -> None: ...
|
def __init__(self, dim: int = ..., trim: bool = ..., precision: Optional[Any] = ...) -> None: ...
|
||||||
def write(self, geom: Any): ...
|
def write(self, geom: Any) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def outdim(self): ...
|
def outdim(self) -> Any: ...
|
||||||
@outdim.setter
|
@outdim.setter
|
||||||
def outdim(self, new_dim: Any) -> None: ...
|
def outdim(self, new_dim: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def trim(self): ...
|
def trim(self) -> Any: ...
|
||||||
@trim.setter
|
@trim.setter
|
||||||
def trim(self, flag: Any) -> None: ...
|
def trim(self, flag: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def precision(self): ...
|
def precision(self) -> Any: ...
|
||||||
@precision.setter
|
@precision.setter
|
||||||
def precision(self, precision: Any) -> None: ...
|
def precision(self, precision: Any) -> None: ...
|
||||||
|
|
||||||
@@ -96,15 +96,15 @@ class WKBWriter(IOBase):
|
|||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
geos_version: Any = ...
|
geos_version: Any = ...
|
||||||
def __init__(self, dim: int = ...) -> None: ...
|
def __init__(self, dim: int = ...) -> None: ...
|
||||||
def write(self, geom: Any): ...
|
def write(self, geom: Any) -> Any: ...
|
||||||
def write_hex(self, geom: Any): ...
|
def write_hex(self, geom: Any) -> Any: ...
|
||||||
byteorder: Any = ...
|
byteorder: Any = ...
|
||||||
@property
|
@property
|
||||||
def outdim(self): ...
|
def outdim(self) -> Any: ...
|
||||||
@outdim.setter
|
@outdim.setter
|
||||||
def outdim(self, new_dim: Any) -> None: ...
|
def outdim(self, new_dim: Any) -> None: ...
|
||||||
@property
|
@property
|
||||||
def srid(self): ...
|
def srid(self) -> Any: ...
|
||||||
@srid.setter
|
@srid.setter
|
||||||
def srid(self, include: Any) -> None: ...
|
def srid(self, include: Any) -> None: ...
|
||||||
|
|
||||||
@@ -117,8 +117,8 @@ class ThreadLocalIO(threading.local):
|
|||||||
|
|
||||||
thread_context: Any
|
thread_context: Any
|
||||||
|
|
||||||
def wkt_r(): ...
|
def wkt_r() -> Any: ...
|
||||||
def wkt_w(dim: int = ..., trim: bool = ..., precision: Optional[Any] = ...): ...
|
def wkt_w(dim: int = ..., trim: bool = ..., precision: Optional[Any] = ...) -> Any: ...
|
||||||
def wkb_r(): ...
|
def wkb_r() -> Any: ...
|
||||||
def wkb_w(dim: int = ...): ...
|
def wkb_w(dim: int = ...) -> Any: ...
|
||||||
def ewkb_w(dim: int = ...): ...
|
def ewkb_w(dim: int = ...) -> Any: ...
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class GEOSFunc:
|
|||||||
cfunc: Any = ...
|
cfunc: Any = ...
|
||||||
thread_context: Any = ...
|
thread_context: Any = ...
|
||||||
def __init__(self, func_name: Any) -> None: ...
|
def __init__(self, func_name: Any) -> None: ...
|
||||||
def __call__(self, *args: Any): ...
|
def __call__(self, *args: Any) -> Any: ...
|
||||||
argtypes: Any = ...
|
argtypes: Any = ...
|
||||||
restype: Any = ...
|
restype: Any = ...
|
||||||
errcheck: Any = ...
|
errcheck: Any = ...
|
||||||
|
|||||||
@@ -7,36 +7,36 @@ class MeasureBase:
|
|||||||
LALIAS: Any = ...
|
LALIAS: Any = ...
|
||||||
def __init__(self, default_unit: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
def __init__(self, default_unit: Optional[Any] = ..., **kwargs: Any) -> None: ...
|
||||||
standard: Any = ...
|
standard: Any = ...
|
||||||
def __getattr__(self, name: Any): ...
|
def __getattr__(self, name: Any) -> Any: ...
|
||||||
def __eq__(self, other: Any) -> Any: ...
|
def __eq__(self, other: Any) -> Any: ...
|
||||||
def __lt__(self, other: Any) -> Any: ...
|
def __lt__(self, other: Any) -> Any: ...
|
||||||
def __add__(self, other: Any): ...
|
def __add__(self, other: Any) -> Any: ...
|
||||||
def __iadd__(self, other: Any): ...
|
def __iadd__(self, other: Any) -> Any: ...
|
||||||
def __sub__(self, other: Any): ...
|
def __sub__(self, other: Any) -> Any: ...
|
||||||
def __isub__(self, other: Any): ...
|
def __isub__(self, other: Any) -> Any: ...
|
||||||
def __mul__(self, other: Any): ...
|
def __mul__(self, other: Any) -> Any: ...
|
||||||
def __imul__(self, other: Any): ...
|
def __imul__(self, other: Any) -> Any: ...
|
||||||
def __rmul__(self, other: Any): ...
|
def __rmul__(self, other: Any) -> Any: ...
|
||||||
def __truediv__(self, other: Any): ...
|
def __truediv__(self, other: Any) -> Any: ...
|
||||||
def __itruediv__(self, other: Any): ...
|
def __itruediv__(self, other: Any) -> Any: ...
|
||||||
def __bool__(self): ...
|
def __bool__(self) -> Any: ...
|
||||||
def default_units(self, kwargs: Any): ...
|
def default_units(self, kwargs: Any) -> Any: ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def unit_attname(cls, unit_str: Any): ...
|
def unit_attname(cls, unit_str: Any) -> Any: ...
|
||||||
|
|
||||||
class Distance(MeasureBase):
|
class Distance(MeasureBase):
|
||||||
STANDARD_UNIT: str = ...
|
STANDARD_UNIT: str = ...
|
||||||
UNITS: Any = ...
|
UNITS: Any = ...
|
||||||
ALIAS: Any = ...
|
ALIAS: Any = ...
|
||||||
LALIAS: Any = ...
|
LALIAS: Any = ...
|
||||||
def __mul__(self, other: Any): ...
|
def __mul__(self, other: Any) -> Any: ...
|
||||||
|
|
||||||
class Area(MeasureBase):
|
class Area(MeasureBase):
|
||||||
STANDARD_UNIT: Any = ...
|
STANDARD_UNIT: Any = ...
|
||||||
UNITS: Any = ...
|
UNITS: Any = ...
|
||||||
ALIAS: Any = ...
|
ALIAS: Any = ...
|
||||||
LALIAS: Any = ...
|
LALIAS: Any = ...
|
||||||
def __truediv__(self, other: Any): ...
|
def __truediv__(self, other: Any) -> Any: ...
|
||||||
|
|
||||||
D = Distance
|
D = Distance
|
||||||
A = Area
|
A = Area
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ class CPointerBase:
|
|||||||
destructor: Any = ...
|
destructor: Any = ...
|
||||||
null_ptr_exception_class: Any = ...
|
null_ptr_exception_class: Any = ...
|
||||||
@property
|
@property
|
||||||
def ptr(self): ...
|
def ptr(self) -> Any: ...
|
||||||
@ptr.setter
|
@ptr.setter
|
||||||
def ptr(self, ptr: Any) -> None: ...
|
def ptr(self, ptr: Any) -> None: ...
|
||||||
def __del__(self) -> None: ...
|
def __del__(self) -> None: ...
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ class Serializer(JSONSerializer):
|
|||||||
def end_serialization(self) -> None: ...
|
def end_serialization(self) -> None: ...
|
||||||
geometry_field: Any = ...
|
geometry_field: Any = ...
|
||||||
def start_object(self, obj: Any) -> None: ...
|
def start_object(self, obj: Any) -> None: ...
|
||||||
def get_dump_object(self, obj: Any): ...
|
def get_dump_object(self, obj: Any) -> Any: ...
|
||||||
def handle_field(self, obj: Any, field: Any) -> None: ...
|
def handle_field(self, obj: Any, field: Any) -> None: ...
|
||||||
|
|
||||||
class Deserializer:
|
class Deserializer:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def compress_kml(kml: Any): ...
|
def compress_kml(kml: Any) -> Any: ...
|
||||||
def render_to_kml(*args: Any, **kwargs: Any): ...
|
def render_to_kml(*args: Any, **kwargs: Any) -> Any: ...
|
||||||
def render_to_kmz(*args: Any, **kwargs: Any): ...
|
def render_to_kmz(*args: Any, **kwargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ class KMLSitemap(Sitemap):
|
|||||||
geo_format: str = ...
|
geo_format: str = ...
|
||||||
locations: Any = ...
|
locations: Any = ...
|
||||||
def __init__(self, locations: Optional[Any] = ...) -> None: ...
|
def __init__(self, locations: Optional[Any] = ...) -> None: ...
|
||||||
def items(self): ...
|
def items(self) -> Any: ...
|
||||||
def location(self, obj: Any): ...
|
def location(self, obj: Any) -> Any: ...
|
||||||
|
|
||||||
class KMZSitemap(KMLSitemap):
|
class KMZSitemap(KMLSitemap):
|
||||||
geo_format: str = ...
|
geo_format: str = ...
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ from typing import Any, Optional
|
|||||||
|
|
||||||
def kml(
|
def kml(
|
||||||
request: Any, label: Any, model: Any, field_name: Optional[Any] = ..., compress: bool = ..., using: Any = ...
|
request: Any, label: Any, model: Any, field_name: Optional[Any] = ..., compress: bool = ..., using: Any = ...
|
||||||
): ...
|
) -> Any: ...
|
||||||
def kmz(request: Any, label: Any, model: Any, field_name: Optional[Any] = ..., using: Any = ...): ...
|
def kmz(request: Any, label: Any, model: Any, field_name: Optional[Any] = ..., using: Any = ...) -> Any: ...
|
||||||
|
|||||||
@@ -35,21 +35,21 @@ class LayerMapping:
|
|||||||
unique: Optional[Any] = ...,
|
unique: Optional[Any] = ...,
|
||||||
using: Optional[Any] = ...,
|
using: Optional[Any] = ...,
|
||||||
) -> None: ...
|
) -> None: ...
|
||||||
def check_fid_range(self, fid_range: Any): ...
|
def check_fid_range(self, fid_range: Any) -> Any: ...
|
||||||
geom_field: str = ...
|
geom_field: str = ...
|
||||||
fields: Any = ...
|
fields: Any = ...
|
||||||
coord_dim: Any = ...
|
coord_dim: Any = ...
|
||||||
def check_layer(self): ...
|
def check_layer(self) -> Any: ...
|
||||||
def check_srs(self, source_srs: Any): ...
|
def check_srs(self, source_srs: Any) -> Any: ...
|
||||||
def check_unique(self, unique: Any) -> None: ...
|
def check_unique(self, unique: Any) -> None: ...
|
||||||
def feature_kwargs(self, feat: Any): ...
|
def feature_kwargs(self, feat: Any) -> Any: ...
|
||||||
def unique_kwargs(self, kwargs: Any): ...
|
def unique_kwargs(self, kwargs: Any) -> Any: ...
|
||||||
def verify_ogr_field(self, ogr_field: Any, model_field: Any): ...
|
def verify_ogr_field(self, ogr_field: Any, model_field: Any) -> Any: ...
|
||||||
def verify_fk(self, feat: Any, rel_model: Any, rel_mapping: Any): ...
|
def verify_fk(self, feat: Any, rel_model: Any, rel_mapping: Any) -> Any: ...
|
||||||
def verify_geom(self, geom: Any, model_field: Any): ...
|
def verify_geom(self, geom: Any, model_field: Any) -> Any: ...
|
||||||
def coord_transform(self): ...
|
def coord_transform(self) -> Any: ...
|
||||||
def geometry_field(self): ...
|
def geometry_field(self) -> Any: ...
|
||||||
def make_multi(self, geom_type: Any, model_field: Any): ...
|
def make_multi(self, geom_type: Any, model_field: Any) -> Any: ...
|
||||||
def save(
|
def save(
|
||||||
self,
|
self,
|
||||||
verbose: bool = ...,
|
verbose: bool = ...,
|
||||||
@@ -59,4 +59,4 @@ class LayerMapping:
|
|||||||
silent: bool = ...,
|
silent: bool = ...,
|
||||||
stream: Any = ...,
|
stream: Any = ...,
|
||||||
strict: bool = ...,
|
strict: bool = ...,
|
||||||
): ...
|
) -> Any: ...
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
def mapping(data_source: Any, geom_name: str = ..., layer_key: int = ..., multi_geom: bool = ...): ...
|
def mapping(data_source: Any, geom_name: str = ..., layer_key: int = ..., multi_geom: bool = ...) -> Any: ...
|
||||||
def ogrinspect(*args: Any, **kwargs: Any): ...
|
def ogrinspect(*args: Any, **kwargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
|
|
||||||
def feed(request: Any, url: Any, feed_dict: Optional[Any] = ...): ...
|
def feed(request: Any, url: Any, feed_dict: Optional[Any] = ...) -> Any: ...
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ class ExclusionConstraint(BaseConstraint):
|
|||||||
deferrable: Optional[Deferrable] = ...,
|
deferrable: Optional[Deferrable] = ...,
|
||||||
include: Union[List[str], Tuple[str], None] = ...,
|
include: Union[List[str], Tuple[str], None] = ...,
|
||||||
opclasses: Union[List[str], Tuple[str]] = ...,
|
opclasses: Union[List[str], Tuple[str]] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class KeyTransform(Transform):
|
|||||||
|
|
||||||
class KeyTransformFactory:
|
class KeyTransformFactory:
|
||||||
def __init__(self, key_name: str) -> None: ...
|
def __init__(self, key_name: str) -> None: ...
|
||||||
def __call__(self, *args, **kwargs) -> KeyTransform: ...
|
def __call__(self, *args: Any, **kwargs: Any) -> KeyTransform: ...
|
||||||
|
|
||||||
class KeysTransform(Transform): ...
|
class KeysTransform(Transform): ...
|
||||||
class ValuesTransform(Transform): ...
|
class ValuesTransform(Transform): ...
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from typing_extensions import Literal
|
|||||||
class RangeBoundary(models.Expression):
|
class RangeBoundary(models.Expression):
|
||||||
lower: str
|
lower: str
|
||||||
upper: str
|
upper: str
|
||||||
def __init__(self, inclusive_lower: bool = ..., inclusive_upper: bool = ...): ...
|
def __init__(self, inclusive_lower: bool = ..., inclusive_upper: bool = ...) -> None: ...
|
||||||
|
|
||||||
class RangeOperators:
|
class RangeOperators:
|
||||||
EQUAL: Literal["="]
|
EQUAL: Literal["="]
|
||||||
@@ -30,19 +30,19 @@ class RangeField(models.Field):
|
|||||||
def to_python(self, value: Any) -> Any: ...
|
def to_python(self, value: Any) -> Any: ...
|
||||||
|
|
||||||
class IntegerRangeField(RangeField):
|
class IntegerRangeField(RangeField):
|
||||||
def __get__(self, instance, owner) -> NumericRange: ...
|
def __get__(self, instance: Any, owner: Any) -> NumericRange: ...
|
||||||
|
|
||||||
class BigIntegerRangeField(RangeField):
|
class BigIntegerRangeField(RangeField):
|
||||||
def __get__(self, instance, owner) -> NumericRange: ...
|
def __get__(self, instance: Any, owner: Any) -> NumericRange: ...
|
||||||
|
|
||||||
class DecimalRangeField(RangeField):
|
class DecimalRangeField(RangeField):
|
||||||
def __get__(self, instance, owner) -> NumericRange: ...
|
def __get__(self, instance: Any, owner: Any) -> NumericRange: ...
|
||||||
|
|
||||||
class DateTimeRangeField(RangeField):
|
class DateTimeRangeField(RangeField):
|
||||||
def __get__(self, instance, owner) -> DateTimeTZRange: ...
|
def __get__(self, instance: Any, owner: Any) -> DateTimeTZRange: ...
|
||||||
|
|
||||||
class DateRangeField(RangeField):
|
class DateRangeField(RangeField):
|
||||||
def __get__(self, instance, owner) -> DateRange: ...
|
def __get__(self, instance: Any, owner: Any) -> DateRange: ...
|
||||||
|
|
||||||
class DateTimeRangeContains(PostgresOperatorLookup):
|
class DateTimeRangeContains(PostgresOperatorLookup):
|
||||||
lookup_name: str = ...
|
lookup_name: str = ...
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class SearchQuery(SearchQueryCombinable, Func): # type: ignore
|
|||||||
config: Optional[_Expression] = ...,
|
config: Optional[_Expression] = ...,
|
||||||
invert: bool = ...,
|
invert: bool = ...,
|
||||||
search_type: str = ...,
|
search_type: str = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
def __invert__(self: _T) -> _T: ...
|
def __invert__(self: _T) -> _T: ...
|
||||||
|
|
||||||
class CombinedSearchQuery(SearchQueryCombinable, CombinedExpression): # type: ignore
|
class CombinedSearchQuery(SearchQueryCombinable, CombinedExpression): # type: ignore
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ class SessionBase(Dict[str, Any]):
|
|||||||
def delete_test_cookie(self) -> None: ...
|
def delete_test_cookie(self) -> None: ...
|
||||||
def encode(self, session_dict: Dict[str, Any]) -> str: ...
|
def encode(self, session_dict: Dict[str, Any]) -> str: ...
|
||||||
def decode(self, session_data: Union[bytes, str]) -> Dict[str, Any]: ...
|
def decode(self, session_data: Union[bytes, str]) -> Dict[str, Any]: ...
|
||||||
def has_key(self, key: Any): ...
|
def has_key(self, key: Any) -> Any: ...
|
||||||
def keys(self): ...
|
def keys(self) -> Any: ...
|
||||||
def values(self): ...
|
def values(self) -> Any: ...
|
||||||
def items(self): ...
|
def items(self) -> Any: ...
|
||||||
def clear(self) -> None: ...
|
def clear(self) -> None: ...
|
||||||
def is_empty(self) -> bool: ...
|
def is_empty(self) -> bool: ...
|
||||||
def _get_session_key(self) -> str: ...
|
def _get_session_key(self) -> str: ...
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ InfoLine = namedtuple(
|
|||||||
class DatabaseIntrospection(BaseDatabaseIntrospection):
|
class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
data_types_reverse: Any = ...
|
data_types_reverse: Any = ...
|
||||||
def get_field_type(self, data_type: Any, description: Any): ...
|
def get_field_type(self, data_type: Any, description: Any) -> Any: ...
|
||||||
def get_table_list(self, cursor: Any): ...
|
def get_table_list(self, cursor: Any) -> Any: ...
|
||||||
def get_table_description(self, cursor: Any, table_name: Any): ...
|
def get_table_description(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...): ...
|
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> Any: ...
|
||||||
def get_relations(self, cursor: Any, table_name: Any): ...
|
def get_relations(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_key_columns(self, cursor: Any, table_name: Any): ...
|
def get_key_columns(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_storage_engine(self, cursor: Any, table_name: Any): ...
|
def get_storage_engine(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_constraints(self, cursor: Any, table_name: Any): ...
|
def get_constraints(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -10,34 +10,34 @@ class DatabaseOperations(BaseDatabaseOperations):
|
|||||||
cast_data_types: Dict[str, str] = ...
|
cast_data_types: Dict[str, str] = ...
|
||||||
cast_char_field_without_max_length: str = ...
|
cast_char_field_without_max_length: str = ...
|
||||||
explain_prefix: str = ...
|
explain_prefix: str = ...
|
||||||
def date_extract_sql(self, lookup_type: str, field_name: str): ...
|
def date_extract_sql(self, lookup_type: str, field_name: str) -> Any: ...
|
||||||
def date_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str] = ...): ...
|
def date_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str] = ...) -> Any: ...
|
||||||
def datetime_cast_date_sql(self, field_name: str, tzname: Optional[str]): ...
|
def datetime_cast_date_sql(self, field_name: str, tzname: Optional[str]) -> Any: ...
|
||||||
def datetime_cast_time_sql(self, field_name: str, tzname: Optional[str]): ...
|
def datetime_cast_time_sql(self, field_name: str, tzname: Optional[str]) -> Any: ...
|
||||||
def datetime_extract_sql(self, lookup_type: str, field_name: str, tzname: Optional[str]): ...
|
def datetime_extract_sql(self, lookup_type: str, field_name: str, tzname: Optional[str]) -> Any: ...
|
||||||
def datetime_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str]): ...
|
def datetime_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str]) -> Any: ...
|
||||||
def time_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str] = ...): ...
|
def time_trunc_sql(self, lookup_type: str, field_name: str, tzname: Optional[str] = ...) -> Any: ...
|
||||||
def fetch_returned_insert_rows(self, cursor: Any): ...
|
def fetch_returned_insert_rows(self, cursor: Any) -> Any: ...
|
||||||
def format_for_duration_arithmetic(self, sql: Any): ...
|
def format_for_duration_arithmetic(self, sql: Any) -> Any: ...
|
||||||
def force_no_ordering(self): ...
|
def force_no_ordering(self) -> Any: ...
|
||||||
def last_executed_query(self, cursor: Any, sql: Any, params: Any): ...
|
def last_executed_query(self, cursor: Any, sql: Any, params: Any) -> Any: ...
|
||||||
def no_limit_value(self): ...
|
def no_limit_value(self) -> Any: ...
|
||||||
def quote_name(self, name: str): ...
|
def quote_name(self, name: str) -> Any: ...
|
||||||
def return_insert_columns(self, fields: Any): ...
|
def return_insert_columns(self, fields: Any) -> Any: ...
|
||||||
def sequence_reset_by_name_sql(self, style: Any, sequences: Any): ...
|
def sequence_reset_by_name_sql(self, style: Any, sequences: Any) -> Any: ...
|
||||||
def validate_autopk_value(self, value: Any): ...
|
def validate_autopk_value(self, value: Any) -> Any: ...
|
||||||
def adapt_datetimefield_value(self, value: Any): ...
|
def adapt_datetimefield_value(self, value: Any) -> Any: ...
|
||||||
def adapt_timefield_value(self, value: Any): ...
|
def adapt_timefield_value(self, value: Any) -> Any: ...
|
||||||
def max_name_length(self): ...
|
def max_name_length(self) -> Any: ...
|
||||||
def bulk_insert_sql(self, fields: Any, placeholder_rows: Any): ...
|
def bulk_insert_sql(self, fields: Any, placeholder_rows: Any) -> Any: ...
|
||||||
def combine_expression(self, connector: Any, sub_expressions: Any): ...
|
def combine_expression(self, connector: Any, sub_expressions: Any) -> Any: ...
|
||||||
def get_db_converters(self, expression: Any): ...
|
def get_db_converters(self, expression: Any) -> Any: ...
|
||||||
def convert_booleanfield_value(self, value: Any, expression: Any, connection: Any): ...
|
def convert_booleanfield_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def convert_datetimefield_value(self, value: Any, expression: Any, connection: Any): ...
|
def convert_datetimefield_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def convert_uuidfield_value(self, value: Any, expression: Any, connection: Any): ...
|
def convert_uuidfield_value(self, value: Any, expression: Any, connection: Any) -> Any: ...
|
||||||
def binary_placeholder_sql(self, value: Any): ...
|
def binary_placeholder_sql(self, value: Any) -> Any: ...
|
||||||
def subtract_temporals(self, internal_type: Any, lhs: Any, rhs: Any): ...
|
def subtract_temporals(self, internal_type: Any, lhs: Any, rhs: Any) -> Any: ...
|
||||||
def explain_query_prefix(self, format: Optional[Any] = ..., **options: Any): ...
|
def explain_query_prefix(self, format: Optional[Any] = ..., **options: Any) -> Any: ...
|
||||||
def regex_lookup(self, lookup_type: str): ...
|
def regex_lookup(self, lookup_type: str) -> Any: ...
|
||||||
def insert_statement(self, ignore_conflicts: bool = ...): ...
|
def insert_statement(self, ignore_conflicts: bool = ...) -> Any: ...
|
||||||
def lookup_cast(self, lookup_type: str, internal_type: Optional[Any] = ...): ...
|
def lookup_cast(self, lookup_type: str, internal_type: Optional[Any] = ...) -> Any: ...
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ from django.db.backends.mysql.base import DatabaseWrapper
|
|||||||
|
|
||||||
class DatabaseValidation(BaseDatabaseValidation):
|
class DatabaseValidation(BaseDatabaseValidation):
|
||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
def check(self, **kwargs: Any): ...
|
def check(self, **kwargs: Any) -> Any: ...
|
||||||
def check_field_type(self, field: Any, field_type: Any): ...
|
def check_field_type(self, field: Any, field_type: Any) -> Any: ...
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ from .validation import DatabaseValidation
|
|||||||
def wrap_oracle_errors() -> Generator[None, None, None]: ...
|
def wrap_oracle_errors() -> Generator[None, None, None]: ...
|
||||||
|
|
||||||
class _UninitializedOperatorsDescriptor:
|
class _UninitializedOperatorsDescriptor:
|
||||||
def __get__(self, instance: Any, cls: Optional[Any] = ...): ...
|
def __get__(self, instance: Any, cls: Optional[Any] = ...) -> Any: ...
|
||||||
|
|
||||||
class DatabaseWrapper(BaseDatabaseWrapper):
|
class DatabaseWrapper(BaseDatabaseWrapper):
|
||||||
client: DatabaseClient
|
client: DatabaseClient
|
||||||
@@ -40,17 +40,17 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||||||
Database: Any = ...
|
Database: Any = ...
|
||||||
SchemaEditorClass: Any = ...
|
SchemaEditorClass: Any = ...
|
||||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||||
def get_connection_params(self): ...
|
def get_connection_params(self) -> Any: ...
|
||||||
def get_new_connection(self, conn_params: Any): ...
|
def get_new_connection(self, conn_params: Any) -> Any: ...
|
||||||
pattern_ops: Any = ...
|
pattern_ops: Any = ...
|
||||||
def init_connection_state(self) -> None: ...
|
def init_connection_state(self) -> None: ...
|
||||||
def create_cursor(self, name: Optional[Any] = ...): ...
|
def create_cursor(self, name: Optional[Any] = ...) -> Any: ...
|
||||||
def check_constraints(self, table_names: Optional[Any] = ...) -> None: ...
|
def check_constraints(self, table_names: Optional[Any] = ...) -> None: ...
|
||||||
def is_usable(self): ...
|
def is_usable(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def cx_oracle_version(self): ...
|
def cx_oracle_version(self) -> Any: ...
|
||||||
@property
|
@property
|
||||||
def oracle_version(self): ...
|
def oracle_version(self) -> Any: ...
|
||||||
|
|
||||||
class OracleParam:
|
class OracleParam:
|
||||||
force_bytes: Any = ...
|
force_bytes: Any = ...
|
||||||
@@ -60,18 +60,18 @@ class OracleParam:
|
|||||||
class VariableWrapper:
|
class VariableWrapper:
|
||||||
var: Any = ...
|
var: Any = ...
|
||||||
def __init__(self, var: Any) -> None: ...
|
def __init__(self, var: Any) -> None: ...
|
||||||
def bind_parameter(self, cursor: Any): ...
|
def bind_parameter(self, cursor: Any) -> Any: ...
|
||||||
def __getattr__(self, key: Any): ...
|
def __getattr__(self, key: Any) -> Any: ...
|
||||||
def __setattr__(self, key: Any, value: Any) -> None: ...
|
def __setattr__(self, key: Any, value: Any) -> None: ...
|
||||||
|
|
||||||
class FormatStylePlaceholderCursor:
|
class FormatStylePlaceholderCursor:
|
||||||
charset: str = ...
|
charset: str = ...
|
||||||
cursor: Any = ...
|
cursor: Any = ...
|
||||||
def __init__(self, connection: Any) -> None: ...
|
def __init__(self, connection: Any) -> None: ...
|
||||||
def execute(self, query: Any, params: Optional[Any] = ...): ...
|
def execute(self, query: Any, params: Optional[Any] = ...) -> Any: ...
|
||||||
def executemany(self, query: Any, params: Optional[Any] = ...): ...
|
def executemany(self, query: Any, params: Optional[Any] = ...) -> Any: ...
|
||||||
def close(self) -> None: ...
|
def close(self) -> None: ...
|
||||||
def var(self, *args: Any): ...
|
def var(self, *args: Any) -> Any: ...
|
||||||
def arrayvar(self, *args: Any): ...
|
def arrayvar(self, *args: Any) -> Any: ...
|
||||||
def __getattr__(self, attr: Any): ...
|
def __getattr__(self, attr: Any) -> Any: ...
|
||||||
def __iter__(self) -> Any: ...
|
def __iter__(self) -> Any: ...
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ TEST_DATABASE_PREFIX: str
|
|||||||
class DatabaseCreation(BaseDatabaseCreation):
|
class DatabaseCreation(BaseDatabaseCreation):
|
||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
def set_as_test_mirror(self, primary_settings_dict: Any) -> None: ...
|
def set_as_test_mirror(self, primary_settings_dict: Any) -> None: ...
|
||||||
def test_db_signature(self): ...
|
def test_db_signature(self) -> Any: ...
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
cache_bust_counter: int = ...
|
cache_bust_counter: int = ...
|
||||||
@property
|
@property
|
||||||
def data_types_reverse(self): ...
|
def data_types_reverse(self) -> Any: ...
|
||||||
def get_field_type(self, data_type: Any, description: Any): ...
|
def get_field_type(self, data_type: Any, description: Any) -> Any: ...
|
||||||
def get_table_list(self, cursor: Any): ...
|
def get_table_list(self, cursor: Any) -> Any: ...
|
||||||
def get_table_description(self, cursor: Any, table_name: Any): ...
|
def get_table_description(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def identifier_converter(self, name: Any): ...
|
def identifier_converter(self, name: Any) -> Any: ...
|
||||||
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...): ...
|
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> Any: ...
|
||||||
def get_relations(self, cursor: Any, table_name: Any): ...
|
def get_relations(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_key_columns(self, cursor: Any, table_name: Any): ...
|
def get_key_columns(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_primary_key_column(self, cursor: Any, table_name: Any): ...
|
def get_primary_key_column(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_constraints(self, cursor: Any, table_name: Any): ...
|
def get_constraints(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ class InsertVar:
|
|||||||
db_type: Any = ...
|
db_type: Any = ...
|
||||||
bound_param: Any = ...
|
bound_param: Any = ...
|
||||||
def __init__(self, field: Any) -> None: ...
|
def __init__(self, field: Any) -> None: ...
|
||||||
def bind_parameter(self, cursor: Any): ...
|
def bind_parameter(self, cursor: Any) -> Any: ...
|
||||||
def get_value(self): ...
|
def get_value(self) -> Any: ...
|
||||||
|
|
||||||
class Oracle_datetime(datetime.datetime):
|
class Oracle_datetime(datetime.datetime):
|
||||||
input_size: Any = ...
|
input_size: Any = ...
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_datetime(cls, dt: Any): ...
|
def from_datetime(cls, dt: Any) -> Any: ...
|
||||||
|
|
||||||
class BulkInsertMapper:
|
class BulkInsertMapper:
|
||||||
BLOB: str = ...
|
BLOB: str = ...
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ from django.db.backends.oracle.base import DatabaseWrapper
|
|||||||
|
|
||||||
class DatabaseValidation(BaseDatabaseValidation):
|
class DatabaseValidation(BaseDatabaseValidation):
|
||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
def check_field_type(self, field: Any, field_type: Any): ...
|
def check_field_type(self, field: Any, field_type: Any) -> Any: ...
|
||||||
|
|||||||
@@ -38,5 +38,5 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||||||
def pg_version(self) -> int: ...
|
def pg_version(self) -> int: ...
|
||||||
|
|
||||||
class CursorDebugWrapper(BaseCursorDebugWrapper):
|
class CursorDebugWrapper(BaseCursorDebugWrapper):
|
||||||
def copy_expert(self, sql: _ExecuteQuery, file: IOBase, *args: Any): ...
|
def copy_expert(self, sql: _ExecuteQuery, file: IOBase, *args: Any) -> Any: ...
|
||||||
def copy_to(self, file: IOBase, table: str, *args: Any, **kwargs: Any): ...
|
def copy_to(self, file: IOBase, table: str, *args: Any, **kwargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
|||||||
connection: DatabaseWrapper
|
connection: DatabaseWrapper
|
||||||
data_types_reverse: Any = ...
|
data_types_reverse: Any = ...
|
||||||
ignored_tables: Any = ...
|
ignored_tables: Any = ...
|
||||||
def get_field_type(self, data_type: Any, description: Any): ...
|
def get_field_type(self, data_type: Any, description: Any) -> Any: ...
|
||||||
def get_table_list(self, cursor: Any): ...
|
def get_table_list(self, cursor: Any) -> Any: ...
|
||||||
def get_table_description(self, cursor: Any, table_name: Any): ...
|
def get_table_description(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...): ...
|
def get_sequences(self, cursor: Any, table_name: Any, table_fields: Any = ...) -> Any: ...
|
||||||
def get_relations(self, cursor: Any, table_name: Any): ...
|
def get_relations(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_key_columns(self, cursor: Any, table_name: Any): ...
|
def get_key_columns(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
def get_constraints(self, cursor: Any, table_name: Any): ...
|
def get_constraints(self, cursor: Any, table_name: Any) -> Any: ...
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ class RemoveIndex(IndexOperation):
|
|||||||
def __init__(self, model_name: str, name: str) -> None: ...
|
def __init__(self, model_name: str, name: str) -> None: ...
|
||||||
|
|
||||||
class AddConstraint(IndexOperation):
|
class AddConstraint(IndexOperation):
|
||||||
def __init__(self, model_name: str, constraint: BaseConstraint): ...
|
def __init__(self, model_name: str, constraint: BaseConstraint) -> None: ...
|
||||||
|
|
||||||
class RemoveConstraint(IndexOperation):
|
class RemoveConstraint(IndexOperation):
|
||||||
def __init__(self, model_name: str, name: str) -> None: ...
|
def __init__(self, model_name: str, name: str) -> None: ...
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ class CombinedExpression(SQLiteNumericMixin, Expression):
|
|||||||
|
|
||||||
class F(Combinable):
|
class F(Combinable):
|
||||||
name: str
|
name: str
|
||||||
def __init__(self, name: str): ...
|
def __init__(self, name: str) -> None: ...
|
||||||
def resolve_expression(
|
def resolve_expression(
|
||||||
self,
|
self,
|
||||||
query: Any = ...,
|
query: Any = ...,
|
||||||
@@ -147,7 +147,7 @@ class F(Combinable):
|
|||||||
class ResolvedOuterRef(F): ...
|
class ResolvedOuterRef(F): ...
|
||||||
|
|
||||||
class OuterRef(F):
|
class OuterRef(F):
|
||||||
def __init__(self, name: Union[str, OuterRef]): ...
|
def __init__(self, name: Union[str, OuterRef]) -> None: ...
|
||||||
contains_aggregate: bool
|
contains_aggregate: bool
|
||||||
def relabeled_clone(self: _Self, relabels: Any) -> _Self: ...
|
def relabeled_clone(self: _Self, relabels: Any) -> _Self: ...
|
||||||
|
|
||||||
@@ -212,17 +212,17 @@ class Case(Expression):
|
|||||||
) -> None: ...
|
) -> None: ...
|
||||||
|
|
||||||
class ExpressionWrapper(Expression):
|
class ExpressionWrapper(Expression):
|
||||||
def __init__(self, expression: Union[Q, Combinable], output_field: Field): ...
|
def __init__(self, expression: Union[Q, Combinable], output_field: Field) -> None: ...
|
||||||
|
|
||||||
class Col(Expression):
|
class Col(Expression):
|
||||||
target: Field
|
target: Field
|
||||||
alias: str
|
alias: str
|
||||||
contains_column_references: Literal[True] = ...
|
contains_column_references: Literal[True] = ...
|
||||||
possibly_multivalued: Literal[False] = ...
|
possibly_multivalued: Literal[False] = ...
|
||||||
def __init__(self, alias: str, target: Field, output_field: Optional[Field] = ...): ...
|
def __init__(self, alias: str, target: Field, output_field: Optional[Field] = ...) -> None: ...
|
||||||
|
|
||||||
class Ref(Expression):
|
class Ref(Expression):
|
||||||
def __init__(self, refs: str, source: Expression): ...
|
def __init__(self, refs: str, source: Expression) -> None: ...
|
||||||
|
|
||||||
class ExpressionList(Func):
|
class ExpressionList(Func):
|
||||||
def __init__(self, *expressions: Union[BaseExpression, Combinable], **extra: Any) -> None: ...
|
def __init__(self, *expressions: Union[BaseExpression, Combinable], **extra: Any) -> None: ...
|
||||||
|
|||||||
@@ -180,17 +180,17 @@ class Field(RegisterLookupMixin, Generic[_ST, _GT]):
|
|||||||
auto_created: bool = ...,
|
auto_created: bool = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
def __set__(self, instance, value: _ST) -> None: ...
|
def __set__(self, instance: Any, value: _ST) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _T, instance: None, owner) -> _T: ...
|
def __get__(self: _T, instance: None, owner: Any) -> _T: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> _GT: ...
|
def __get__(self, instance: Model, owner: Any) -> _GT: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _T, instance, owner) -> _T: ...
|
def __get__(self: _T, instance: Any, owner: Any) -> _T: ...
|
||||||
def deconstruct(self) -> Any: ...
|
def deconstruct(self) -> Any: ...
|
||||||
def set_attributes_from_name(self, name: str) -> None: ...
|
def set_attributes_from_name(self, name: str) -> None: ...
|
||||||
def db_type_parameters(self, connection: BaseDatabaseWrapper) -> DictWrapper: ...
|
def db_type_parameters(self, connection: BaseDatabaseWrapper) -> DictWrapper: ...
|
||||||
@@ -282,7 +282,7 @@ class DecimalField(Field[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class CharField(Field[_ST, _GT]):
|
class CharField(Field[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[str, int, Combinable]
|
_pyi_private_set_type: Union[str, int, Combinable]
|
||||||
@@ -314,7 +314,7 @@ class CharField(Field[_ST, _GT]):
|
|||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
*,
|
*,
|
||||||
db_collation: Optional[str] = ...,
|
db_collation: Optional[str] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class CommaSeparatedIntegerField(CharField[_ST, _GT]): ...
|
class CommaSeparatedIntegerField(CharField[_ST, _GT]): ...
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ class SlugField(CharField[_ST, _GT]):
|
|||||||
max_length: Optional[int] = ...,
|
max_length: Optional[int] = ...,
|
||||||
db_index: bool = ...,
|
db_index: bool = ...,
|
||||||
allow_unicode: bool = ...,
|
allow_unicode: bool = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class EmailField(CharField[_ST, _GT]): ...
|
class EmailField(CharField[_ST, _GT]): ...
|
||||||
|
|
||||||
@@ -374,7 +374,7 @@ class URLField(CharField[_ST, _GT]):
|
|||||||
auto_created: bool = ...,
|
auto_created: bool = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class TextField(Field[_ST, _GT]):
|
class TextField(Field[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[str, Combinable]
|
_pyi_private_set_type: Union[str, Combinable]
|
||||||
@@ -406,7 +406,7 @@ class TextField(Field[_ST, _GT]):
|
|||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
*,
|
*,
|
||||||
db_collation: Optional[str] = ...,
|
db_collation: Optional[str] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class BooleanField(Field[_ST, _GT]):
|
class BooleanField(Field[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[bool, Combinable]
|
_pyi_private_set_type: Union[bool, Combinable]
|
||||||
@@ -483,7 +483,7 @@ class DateField(DateTimeCheckMixin, Field[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
|
class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[str, time, real_datetime, Combinable]
|
_pyi_private_set_type: Union[str, time, real_datetime, Combinable]
|
||||||
@@ -512,7 +512,7 @@ class TimeField(DateTimeCheckMixin, Field[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class DateTimeField(DateField[_ST, _GT]):
|
class DateTimeField(DateField[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[str, real_datetime, date, Combinable]
|
_pyi_private_set_type: Union[str, real_datetime, date, Combinable]
|
||||||
@@ -548,7 +548,7 @@ class UUIDField(Field[_ST, _GT]):
|
|||||||
auto_created: bool = ...,
|
auto_created: bool = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class FilePathField(Field[_ST, _GT]):
|
class FilePathField(Field[_ST, _GT]):
|
||||||
path: Any = ...
|
path: Any = ...
|
||||||
@@ -582,7 +582,7 @@ class FilePathField(Field[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
|
|
||||||
class BinaryField(Field[_ST, _GT]):
|
class BinaryField(Field[_ST, _GT]):
|
||||||
_pyi_private_get_type: Union[bytes, memoryview]
|
_pyi_private_get_type: Union[bytes, memoryview]
|
||||||
|
|||||||
@@ -70,16 +70,16 @@ class FileField(Field):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload # type: ignore
|
@overload # type: ignore
|
||||||
def __get__(self, instance: None, owner) -> FileDescriptor: ...
|
def __get__(self, instance: None, owner: Any) -> FileDescriptor: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> Any: ...
|
def __get__(self, instance: Model, owner: Any) -> Any: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _T, instance, owner) -> _T: ...
|
def __get__(self: _T, instance: Any, owner: Any) -> _T: ...
|
||||||
def generate_filename(self, instance: Optional[Model], filename: _PathCompatible) -> str: ...
|
def generate_filename(self, instance: Optional[Model], filename: _PathCompatible) -> str: ...
|
||||||
|
|
||||||
class ImageFileDescriptor(FileDescriptor):
|
class ImageFileDescriptor(FileDescriptor):
|
||||||
@@ -101,11 +101,11 @@ class ImageField(FileField):
|
|||||||
) -> None: ...
|
) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload # type: ignore
|
@overload # type: ignore
|
||||||
def __get__(self, instance: None, owner) -> ImageFileDescriptor: ...
|
def __get__(self, instance: None, owner: Any) -> ImageFileDescriptor: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> Any: ...
|
def __get__(self, instance: Model, owner: Any) -> Any: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _T, instance, owner) -> _T: ...
|
def __get__(self: _T, instance: Any, owner: Any) -> _T: ...
|
||||||
def update_dimension_fields(self, instance: Model, force: bool = ..., *args: Any, **kwargs: Any) -> None: ...
|
def update_dimension_fields(self, instance: Model, force: bool = ..., *args: Any, **kwargs: Any) -> None: ...
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ class FieldCacheMixin:
|
|||||||
def delete_cached_value(self, instance: Model) -> None: ...
|
def delete_cached_value(self, instance: Model) -> None: ...
|
||||||
|
|
||||||
class CheckFieldDefaultMixin:
|
class CheckFieldDefaultMixin:
|
||||||
def check(self, **kwargs: Any): ...
|
def check(self, **kwargs: Any) -> Any: ...
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ class ForeignObject(RelatedField[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
def resolve_related_fields(self) -> List[Tuple[Field, Field]]: ...
|
def resolve_related_fields(self) -> List[Tuple[Field, Field]]: ...
|
||||||
@property
|
@property
|
||||||
def related_fields(self) -> List[Tuple[Field, Field]]: ...
|
def related_fields(self) -> List[Tuple[Field, Field]]: ...
|
||||||
@@ -144,16 +144,16 @@ class ForeignKey(ForeignObject[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload # type: ignore
|
@overload # type: ignore
|
||||||
def __get__(self, instance: None, owner) -> ForwardManyToOneDescriptor: ...
|
def __get__(self, instance: None, owner: Any) -> ForwardManyToOneDescriptor: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> _GT: ...
|
def __get__(self, instance: Model, owner: Any) -> _GT: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _F, instance, owner) -> _F: ...
|
def __get__(self: _F, instance: Any, owner: Any) -> _F: ...
|
||||||
|
|
||||||
class OneToOneField(ForeignKey[_ST, _GT]):
|
class OneToOneField(ForeignKey[_ST, _GT]):
|
||||||
_pyi_private_set_type: Union[Any, Combinable]
|
_pyi_private_set_type: Union[Any, Combinable]
|
||||||
@@ -193,16 +193,16 @@ class OneToOneField(ForeignKey[_ST, _GT]):
|
|||||||
db_tablespace: Optional[str] = ...,
|
db_tablespace: Optional[str] = ...,
|
||||||
validators: Iterable[validators._ValidatorCallable] = ...,
|
validators: Iterable[validators._ValidatorCallable] = ...,
|
||||||
error_messages: Optional[_ErrorMessagesT] = ...,
|
error_messages: Optional[_ErrorMessagesT] = ...,
|
||||||
): ...
|
) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload # type: ignore
|
@overload # type: ignore
|
||||||
def __get__(self, instance: None, owner) -> ForwardOneToOneDescriptor: ...
|
def __get__(self, instance: None, owner: Any) -> ForwardOneToOneDescriptor: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> _GT: ...
|
def __get__(self, instance: Model, owner: Any) -> _GT: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _F, instance, owner) -> _F: ...
|
def __get__(self: _F, instance: Any, owner: Any) -> _F: ...
|
||||||
|
|
||||||
class ManyToManyField(RelatedField[_ST, _GT]):
|
class ManyToManyField(RelatedField[_ST, _GT]):
|
||||||
_pyi_private_set_type: Sequence[Any]
|
_pyi_private_set_type: Sequence[Any]
|
||||||
@@ -256,13 +256,13 @@ class ManyToManyField(RelatedField[_ST, _GT]):
|
|||||||
) -> None: ...
|
) -> None: ...
|
||||||
# class access
|
# class access
|
||||||
@overload # type: ignore
|
@overload # type: ignore
|
||||||
def __get__(self, instance: None, owner) -> ManyToManyDescriptor: ...
|
def __get__(self, instance: None, owner: Any) -> ManyToManyDescriptor: ...
|
||||||
# Model instance access
|
# Model instance access
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: Model, owner) -> _GT: ...
|
def __get__(self, instance: Model, owner: Any) -> _GT: ...
|
||||||
# non-Model instances
|
# non-Model instances
|
||||||
@overload
|
@overload
|
||||||
def __get__(self: _F, instance, owner) -> _F: ...
|
def __get__(self: _F, instance: Any, owner: Any) -> _F: ...
|
||||||
def get_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
|
def get_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
|
||||||
def get_reverse_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
|
def get_reverse_path_info(self, filtered_relation: Optional[FilteredRelation] = ...) -> List[PathInfo]: ...
|
||||||
def contribute_to_related_class(self, cls: Type[Model], related: RelatedField) -> None: ...
|
def contribute_to_related_class(self, cls: Type[Model], related: RelatedField) -> None: ...
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class DateTimeBaseInput(TextInput):
|
|||||||
format_key: str = ...
|
format_key: str = ...
|
||||||
format: Optional[str] = ...
|
format: Optional[str] = ...
|
||||||
supports_microseconds: bool = ...
|
supports_microseconds: bool = ...
|
||||||
def __init__(self, attrs: Optional[_OptAttrs] = ..., format: Optional[str] = ...): ...
|
def __init__(self, attrs: Optional[_OptAttrs] = ..., format: Optional[str] = ...) -> None: ...
|
||||||
|
|
||||||
class DateInput(DateTimeBaseInput):
|
class DateInput(DateTimeBaseInput):
|
||||||
format_key: str = ...
|
format_key: str = ...
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ _T = TypeVar("_T")
|
|||||||
class cached_property(Generic[_T]):
|
class cached_property(Generic[_T]):
|
||||||
func: Callable[..., _T] = ...
|
func: Callable[..., _T] = ...
|
||||||
name: str = ...
|
name: str = ...
|
||||||
def __init__(self, func: Callable[..., _T], name: str = ...): ...
|
def __init__(self, func: Callable[..., _T], name: str = ...) -> None: ...
|
||||||
@overload
|
@overload
|
||||||
def __get__(self, instance: None, cls: Type[Any] = ...) -> "cached_property[_T]": ...
|
def __get__(self, instance: None, cls: Type[Any] = ...) -> "cached_property[_T]": ...
|
||||||
@overload
|
@overload
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user