fix(sdk): fix TypeError when trying to slice a Paginator object
fix TypeError when trying to slice Paginator
@@ -1056,7 +1056,8 @@ class Paginator:
def __getitem__(self, index):
loaded = True
- while loaded and index > len(self.objects) - 1:
+ stop = index.stop if isinstance(index, slice) else index
+ while loaded and stop > len(self.objects) - 1:
loaded = self._load_page()
return self.objects[index]
