API: remove __geom__, keep _geom read-only access to GEOS pointer#1417
Conversation
Pull Request Test Coverage Report for Build 2487695785
💛 - Coveralls |
| class ShapelyGeometryMock: | ||
| def __init__(self, g): | ||
| self.g = g | ||
| self.__geom__ = g._ptr if hasattr(g, "_ptr") else g |
There was a problem hiding this comment.
This was some leftover code from pygeos (testing it could convert shapely geometries), that could be cleaned-up (while removing all references of __geom__)
Ah, that's actually in a file that is no longer used. Cleaning that up separately -> #1419
Yeah, I wondered the same. But the problem is that renaming it to |
brendan-ward
left a comment
There was a problem hiding this comment.
Thanks @jorisvandenbossche , looks good to me.
Closes #999. This removes the
__geom__dunder attribute and keeps_geom(renaming the_ptrinherited from pygeos to_geom).