Skip to content

Commit

Permalink
Fix order when unpacking self._initdata in nearest()
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Gillies committed Mar 13, 2021
1 parent eca5abd commit ae6f2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shapely/strtree.py
Expand Up @@ -275,7 +275,7 @@ def nearest(self, geom):

# In a future version of shapely, geometries will be hashable
# and we won't need to reindex like this.
geoms = {id(v): g for g, v in self._initdata}
geoms = {id(v): g for v, g in self._initdata}

@nearest_callback
def callback(value, geom):
Expand Down

0 comments on commit ae6f2b8

Please sign in to comment.