Skip to content

Commit 58b608c

Browse files
committed
Remove unneccesory re-exports
1 parent b7858ad commit 58b608c

19 files changed

+41
-44
lines changed

django-stubs/contrib/gis/admin/options.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from django.contrib.admin import ModelAdmin as ModelAdmin
3+
from django.contrib.admin import ModelAdmin
44
from django.contrib.gis.forms import BaseGeometryWidget
55

66
spherical_mercator_srid: int

django-stubs/contrib/gis/apps.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from django.apps import AppConfig as AppConfig
1+
from django.apps import AppConfig
22

33
class GISConfig(AppConfig): ...

django-stubs/contrib/gis/gdal/datasource.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from typing import Any
22

3-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
4-
from django.contrib.gis.gdal.driver import Driver as Driver
5-
from django.contrib.gis.gdal.layer import Layer as Layer
3+
from django.contrib.gis.gdal.base import GDALBase
4+
from django.contrib.gis.gdal.driver import Driver
5+
from django.contrib.gis.gdal.layer import Layer
66

77
class DataSource(GDALBase):
88
destructor: Any

django-stubs/contrib/gis/gdal/driver.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
3+
from django.contrib.gis.gdal.base import GDALBase
44

55
class Driver(GDALBase):
66
ptr: Any

django-stubs/contrib/gis/gdal/feature.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from typing import Any
22

3-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
4-
from django.contrib.gis.gdal.field import Field as Field
5-
from django.contrib.gis.gdal.geometries import OGRGeometry as OGRGeometry
6-
from django.contrib.gis.gdal.geomtype import OGRGeomType as OGRGeomType
3+
from django.contrib.gis.gdal.base import GDALBase
4+
from django.contrib.gis.gdal.field import Field
5+
from django.contrib.gis.gdal.geometries import OGRGeometry
6+
from django.contrib.gis.gdal.geomtype import OGRGeomType
77

88
class Feature(GDALBase):
99
destructor: Any

django-stubs/contrib/gis/gdal/field.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
3+
from django.contrib.gis.gdal.base import GDALBase
44

55
class Field(GDALBase):
66
ptr: Any

django-stubs/contrib/gis/gdal/geometries.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from typing import Any, AnyStr
22

33
from django.contrib.gis.gdal import CoordTransform, SpatialReference
4-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
5-
from django.contrib.gis.gdal.envelope import Envelope as Envelope
6-
from django.contrib.gis.gdal.geomtype import OGRGeomType as OGRGeomType
4+
from django.contrib.gis.gdal.base import GDALBase
5+
from django.contrib.gis.gdal.envelope import Envelope
6+
from django.contrib.gis.gdal.geomtype import OGRGeomType
77
from django.contrib.gis.geos import GEOSGeometry
88

99
class OGRGeometry(GDALBase):

django-stubs/contrib/gis/gdal/layer.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from collections.abc import Iterator
22
from typing import Any, AnyStr, overload
33

4-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
5-
from django.contrib.gis.gdal.envelope import Envelope as Envelope
6-
from django.contrib.gis.gdal.feature import Feature as Feature
7-
from django.contrib.gis.gdal.field import Field as Field
8-
from django.contrib.gis.gdal.geometries import OGRGeometry as OGRGeometry
9-
from django.contrib.gis.gdal.geomtype import OGRGeomType as OGRGeomType
10-
from django.contrib.gis.gdal.srs import SpatialReference as SpatialReference
11-
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
4+
from django.contrib.gis.gdal.base import GDALBase
5+
from django.contrib.gis.gdal.envelope import Envelope
6+
from django.contrib.gis.gdal.feature import Feature
7+
from django.contrib.gis.gdal.field import Field
8+
from django.contrib.gis.gdal.geometries import OGRGeometry
9+
from django.contrib.gis.gdal.geomtype import OGRGeomType
10+
from django.contrib.gis.gdal.srs import SpatialReference
11+
from django.contrib.gis.geos.geometry import GEOSGeometry
1212
from typing_extensions import Literal
1313

1414
class Layer(GDALBase):

django-stubs/contrib/gis/gdal/raster/band.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any, overload
22

3-
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
3+
from django.contrib.gis.gdal.raster.base import GDALRasterBase
44
from typing_extensions import Literal
55

66
class GDALBand(GDALRasterBase):

django-stubs/contrib/gis/gdal/raster/base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Any
22

3-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
3+
from django.contrib.gis.gdal.base import GDALBase
44

55
class GDALRasterBase(GDALBase):
66
@property

django-stubs/contrib/gis/gdal/raster/source.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from collections.abc import Sequence
22
from typing import Any
33

4-
from django.contrib.gis.gdal.driver import Driver as Driver
5-
from django.contrib.gis.gdal.raster.band import BandList as BandList
6-
from django.contrib.gis.gdal.raster.base import GDALRasterBase as GDALRasterBase
7-
from django.contrib.gis.gdal.srs import SpatialReference as SpatialReference
4+
from django.contrib.gis.gdal.driver import Driver
5+
from django.contrib.gis.gdal.raster.band import BandList
6+
from django.contrib.gis.gdal.raster.base import GDALRasterBase
7+
from django.contrib.gis.gdal.srs import SpatialReference
88

99
class TransformPoint(list[Sequence[float]]):
1010
indices: dict[str, tuple[int, int]]

django-stubs/contrib/gis/gdal/srs.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from enum import IntEnum
22
from typing import Any, AnyStr
33

44
from _typeshed import Self
5-
from django.contrib.gis.gdal.base import GDALBase as GDALBase
5+
from django.contrib.gis.gdal.base import GDALBase
66

77
class AxisOrder(IntEnum):
88
TRADITIONAL: int

django-stubs/contrib/gis/geos/collections.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from collections.abc import Iterator
22
from typing import Any
33

4-
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
5-
from django.contrib.gis.geos.geometry import LinearGeometryMixin as LinearGeometryMixin
4+
from django.contrib.gis.geos.geometry import GEOSGeometry, LinearGeometryMixin
65

76
class GeometryCollection(GEOSGeometry):
87
def __init__(self, *args: Any, **kwargs: Any) -> None: ...

django-stubs/contrib/gis/geos/coordseq.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ from collections.abc import Iterator
22
from typing import Any
33

44
from _typeshed import Self
5-
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
5+
from django.contrib.gis.geos.base import GEOSBase
66

77
class GEOSCoordSeq(GEOSBase):
88
ptr_type: Any

django-stubs/contrib/gis/geos/geometry.pyi

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ from _typeshed import Self
44
from django.contrib.gis.gdal import CoordTransform, SpatialReference
55
from django.contrib.gis.gdal.geometries import OGRGeometry
66
from django.contrib.gis.geometry import hex_regex as hex_regex # noqa: F401
7-
from django.contrib.gis.geometry import json_regex as json_regex
87
from django.contrib.gis.geometry import wkt_regex as wkt_regex
9-
from django.contrib.gis.geos.base import GEOSBase as GEOSBase
10-
from django.contrib.gis.geos.coordseq import GEOSCoordSeq as GEOSCoordSeq
11-
from django.contrib.gis.geos.mutable_list import ListMixin as ListMixin
8+
from django.contrib.gis.geos.base import GEOSBase
9+
from django.contrib.gis.geos.coordseq import GEOSCoordSeq
10+
from django.contrib.gis.geos.mutable_list import ListMixin
1211
from django.contrib.gis.geos.point import Point
13-
from django.contrib.gis.geos.prepared import PreparedGeometry as PreparedGeometry
12+
from django.contrib.gis.geos.prepared import PreparedGeometry
1413

1514
class GEOSGeometryBase(GEOSBase):
1615
ptr_type: Any

django-stubs/contrib/gis/geos/linestring.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from collections.abc import Iterator
22
from typing import Any
33

4-
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
5-
from django.contrib.gis.geos.geometry import LinearGeometryMixin as LinearGeometryMixin
4+
from django.contrib.gis.geos.geometry import GEOSGeometry, LinearGeometryMixin
65

76
class LineString(LinearGeometryMixin, GEOSGeometry):
87
has_cs: bool

django-stubs/contrib/gis/geos/point.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from collections.abc import Iterator
22
from typing import Any
33

4-
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
4+
from django.contrib.gis.geos.geometry import GEOSGeometry
55

66
class Point(GEOSGeometry):
77
has_cs: bool

django-stubs/contrib/gis/geos/polygon.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from collections.abc import Iterator
22
from typing import Any
33

4-
from django.contrib.gis.geos.geometry import GEOSGeometry as GEOSGeometry
5-
from django.contrib.gis.geos.linestring import LinearRing as LinearRing
4+
from django.contrib.gis.geos.geometry import GEOSGeometry
5+
from django.contrib.gis.geos.linestring import LinearRing
66

77
class Polygon(GEOSGeometry):
88
def __init__(self, *args: Any, **kwargs: Any) -> None: ...

django-stubs/contrib/gis/geos/prepared.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Any
22

3-
from .base import GEOSBase as GEOSBase
4-
from .geometry import GEOSGeometry as GEOSGeometry
3+
from .base import GEOSBase
4+
from .geometry import GEOSGeometry
55

66
class PreparedGeometry(GEOSBase):
77
ptr_type: Any

0 commit comments

Comments
 (0)