Skip to content

Commit

Permalink
Fix overloading of GeoDjango Layer.get_geoms
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Jan 23, 2023
1 parent b6deb48 commit 1d7ac13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/contrib/gis/gdal/layer.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Layer(GDALBase):
spatial_filter: OGRGeometry | None
def get_fields(self, field_name: str) -> list[Any]: ...
@overload
def get_geoms(self, geos: Literal[True] = ...) -> OGRGeometry: ...
def get_geoms(self, geos: Literal[True] = ...) -> list[GEOSGeometry]: ...
@overload
def get_geoms(self, geos: Literal[False]) -> GEOSGeometry: ...
def get_geoms(self, geos: Literal[False]) -> list[OGRGeometry]: ...
def test_capability(self, capability: AnyStr) -> bool: ...

0 comments on commit 1d7ac13

Please sign in to comment.