You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def insert(self, point):
"""
Inserts a `Point` into the quadtree.
Args:
point (Point|tuple|None): The point to insert.
data (any): Optional. Corresponding data for that point. Default
is `None`.
Returns:
bool: `True` if insertion succeeded, otherwise `False`.
"""
pnt = self.convert_to_point(point)
# pnt.data = data
return self._root.insert(pnt)
In the insert() of class QuadTree, suggest to remove the "data=None" in the insert and delete "pnt.data=data".