Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unintentional GeoDjango re-exports #1308

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/admin/widgets.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from logging import Logger
from typing import Any

from django.forms.widgets import Textarea as Textarea
from django.forms.widgets import Textarea

geo_context: Any
logger: Logger
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/mysql/features.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures as BaseSpatialFeatures
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
from django.db.backends.mysql.features import DatabaseFeatures as MySQLDatabaseFeatures

class DatabaseFeatures(BaseSpatialFeatures, MySQLDatabaseFeatures):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.db.backends.mysql.introspection import DatabaseIntrospection as DatabaseIntrospection
from django.db.backends.mysql.introspection import DatabaseIntrospection

class MySQLIntrospection(DatabaseIntrospection):
data_types_reverse: Any
Expand Down
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/db/backends/mysql/operations.pyi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from collections.abc import Callable
from typing import Any

from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.contrib.gis.geos.geometry import GEOSGeometryBase
from django.db.backends.mysql.operations import DatabaseOperations as DatabaseOperations
from django.db.backends.mysql.operations import DatabaseOperations

class MySQLOperations(BaseSpatialOperations, DatabaseOperations):
name: str
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/mysql/schema.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from logging import Logger
from typing import Any

from django.db.backends.mysql.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
from django.db.backends.mysql.schema import DatabaseSchemaEditor

logger: Logger

Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/oracle/features.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures as BaseSpatialFeatures
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
from django.db.backends.oracle.features import DatabaseFeatures as OracleDatabaseFeatures

class DatabaseFeatures(BaseSpatialFeatures, OracleDatabaseFeatures):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.db.backends.oracle.introspection import DatabaseIntrospection as DatabaseIntrospection
from django.db.backends.oracle.introspection import DatabaseIntrospection

class OracleIntrospection(DatabaseIntrospection):
@property
Expand Down
6 changes: 3 additions & 3 deletions django-stubs/contrib/gis/db/backends/oracle/operations.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any

from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations as BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
from django.db.backends.oracle.operations import DatabaseOperations as DatabaseOperations
from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.db.backends.oracle.operations import DatabaseOperations

DEFAULT_TOLERANCE: str

Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/postgis/features.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures as BaseSpatialFeatures
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
from django.db.backends.postgresql.features import DatabaseFeatures as Psycopg2DatabaseFeatures

class DatabaseFeatures(BaseSpatialFeatures, Psycopg2DatabaseFeatures):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.db.backends.postgresql.introspection import DatabaseIntrospection as DatabaseIntrospection
from django.db.backends.postgresql.introspection import DatabaseIntrospection

class PostGISIntrospection(DatabaseIntrospection):
postgis_oid_lookup: Any
Expand Down
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/db/backends/postgis/models.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
from django.db import models as models
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin
from django.db import models

class PostGISGeometryColumns(models.Model):
f_table_catalog: Any
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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

class SpatiaLiteAdapter(WKTAdapter):
def __conform__(self, protocol: Any) -> Any: ...
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/spatialite/client.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.db.backends.sqlite3.client import DatabaseClient as DatabaseClient
from django.db.backends.sqlite3.client import DatabaseClient

class SpatiaLiteClient(DatabaseClient):
executable_name: str
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures as BaseSpatialFeatures
from django.contrib.gis.db.backends.base.features import BaseSpatialFeatures
from django.db.backends.sqlite3.features import DatabaseFeatures as SQLiteDatabaseFeatures

class DatabaseFeatures(BaseSpatialFeatures, SQLiteDatabaseFeatures):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from typing import Any

from django.db.backends.sqlite3.introspection import DatabaseIntrospection as DatabaseIntrospection
from django.db.backends.sqlite3.introspection import FlexibleFieldLookupDict as FlexibleFieldLookupDict
from django.db.backends.sqlite3.introspection import DatabaseIntrospection, FlexibleFieldLookupDict

class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict):
base_data_types_reverse: Any
Expand Down
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/db/backends/spatialite/models.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin as SpatialRefSysMixin
from django.db import models as models
from django.contrib.gis.db.backends.base.models import SpatialRefSysMixin
from django.db import models

class SpatialiteGeometryColumns(models.Model):
f_table_name: Any
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations
from django.contrib.gis.db.backends.utils import SpatialOperator as SpatialOperator
from django.contrib.gis.db.backends.utils import SpatialOperator
from django.db.backends.sqlite3.operations import DatabaseOperations

class SpatialiteNullCheckOperator(SpatialOperator): ...
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/backends/spatialite/schema.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.db.backends.sqlite3.schema import DatabaseSchemaEditor as DatabaseSchemaEditor
from django.db.backends.sqlite3.schema import DatabaseSchemaEditor

class SpatialiteSchemaEditor(DatabaseSchemaEditor):
sql_add_geometry_column: str
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/db/models/sql/conversion.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.db import models as models
from django.db import models

class AreaField(models.FloatField):
geo_field: Any
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/forms/widgets.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from logging import Logger
from typing import Any

from django.forms.widgets import Widget as Widget
from django.forms.widgets import Widget

logger: Logger

Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/gdal/base.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.ptr import CPointerBase as CPointerBase
from django.contrib.gis.ptr import CPointerBase

class GDALBase(CPointerBase):
null_ptr_exception_class: Any
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/geos/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from ..geometry import hex_regex as hex_regex
from ..geometry import wkt_regex as wkt_regex
from .collections import GeometryCollection as GeometryCollection
from .collections import MultiLineString as MultiLineString
from .collections import MultiPoint as MultiPoint
Expand All @@ -6,8 +8,6 @@ from .error import GEOSException as GEOSException
from .factory import fromfile as fromfile
from .factory import fromstr as fromstr
from .geometry import GEOSGeometry as GEOSGeometry
from .geometry import hex_regex as hex_regex
from .geometry import wkt_regex as wkt_regex
from .io import WKBReader as WKBReader
from .io import WKBWriter as WKBWriter
from .io import WKTReader as WKTReader
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/base.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.contrib.gis.geos.error import GEOSException
from django.contrib.gis.ptr import CPointerBase as CPointerBase
from django.contrib.gis.ptr import CPointerBase

class GEOSBase(CPointerBase):
null_ptr_exception_class: type[GEOSException]
2 changes: 0 additions & 2 deletions django-stubs/contrib/gis/geos/geometry.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ from typing import Any
from _typeshed import Self
from django.contrib.gis.gdal import CoordTransform, SpatialReference
from django.contrib.gis.gdal.geometries import OGRGeometry
from django.contrib.gis.geometry import hex_regex as hex_regex # noqa: F401
from django.contrib.gis.geometry import wkt_regex as wkt_regex
from django.contrib.gis.geos.base import GEOSBase
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
from django.contrib.gis.geos.mutable_list import ListMixin
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/coordseq.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

def check_cs_op(result: Any, func: Any, cargs: Any) -> Any: ...
def check_cs_get(result: Any, func: Any, cargs: Any) -> Any: ...
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/geom.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ctypes import c_char_p
from typing import Any

from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

c_uchar_p: Any

Expand Down
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/geos/prototypes/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import threading
from ctypes import Structure
from typing import Any

from django.contrib.gis.geos.base import GEOSBase as GEOSBase
from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.base import GEOSBase
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

class WKTReader_st(Structure): ...
class WKTWriter_st(Structure): ...
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/predicates.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

class UnaryPredicate(GEOSFuncFactory):
argtypes: Any
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/prepared.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

geos_prepare: Any
prepared_destroy: Any
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/threadsafe.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import threading
from typing import Any

from django.contrib.gis.geos.base import GEOSBase as GEOSBase
from django.contrib.gis.geos.base import GEOSBase

class GEOSContextHandle(GEOSBase):
ptr_type: Any
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/geos/prototypes/topology.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.gis.geos.libgeos import GEOSFuncFactory as GEOSFuncFactory
from django.contrib.gis.geos.libgeos import GEOSFuncFactory

class Topology(GEOSFuncFactory):
argtypes: Any
Expand Down
2 changes: 1 addition & 1 deletion django-stubs/contrib/gis/sitemaps/kml.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from django.contrib.sitemaps import Sitemap as Sitemap
from django.contrib.sitemaps import Sitemap

class KMLSitemap(Sitemap):
geo_format: str
Expand Down