From 624229033305cfe72b6135016593d6be4a5c4c22 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 10 Jul 2024 17:06:08 +0200 Subject: [PATCH] Index: use len in repr --- rtree/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()