diff --git a/rtree/index.py b/rtree/index.py index 169a1e96..b6a510f9 100644 --- a/rtree/index.py +++ b/rtree/index.py @@ -297,7 +297,7 @@ def __len__(self) -> int: return 0 def __repr__(self) -> str: - return f"rtree.index.Index(bounds={self.bounds}, size={self.get_size()})" + return f"rtree.index.Index(bounds={self.bounds}, size={len(self)})" def __getstate__(self) -> dict[str, Any]: state = self.__dict__.copy()