"OGRGeometry" has no attribute "__iter__" (not iterable) #1333
Labels
bug
Something isn't working
regression
Behavior has changed for worse with a release
stubs
Issues in stubs files (.pyi)
Bug report
What's wrong
Iterating on the return type of
Layer.get_geoms
throws:"OGRGeometry" has no attribute "__iter__" (not iterable)
I think these lines are wrong:
django-stubs/django-stubs/contrib/gis/gdal/layer.pyi
Lines 43 to 46 in 2e504df
How is that should be
I think the type definitions should be as follows (mind also the switched
geos
parameter):What do you think, @ciscorn?
System information
python:3.9.16-bullseye
python
version: 3.9.16django
version: 4.1.4mypy
version: 0-991django-stubs
version: 1.13.2The text was updated successfully, but these errors were encountered: