File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def __init__(self,
4545 """
4646 self ._fetched_all = False
4747 self ._data : List [Dict [str , Any ]] = []
48- self ._data_index = 0
48+ self ._data_ind = 0
4949
5050 pagination_kwargs = {
5151 'client' : client ,
@@ -62,11 +62,11 @@ def __init__(self,
6262 ** pagination_kwargs )
6363
6464 def __iter__ (self ):
65- self ._data_index = 0
65+ self ._data_ind = 0
6666 return self
6767
6868 def __next__ (self ):
69- if len (self ._data ) <= self ._data_index :
69+ if len (self ._data ) <= self ._data_ind :
7070 if self ._fetched_all :
7171 raise StopIteration ()
7272
@@ -75,9 +75,9 @@ def __next__(self):
7575 if len (page_data ) == 0 :
7676 raise StopIteration ()
7777
78- next_value = self ._data [self ._data_index ]
79- self ._data_index += 1
80- return next_value
78+ rval = self ._data [self ._data_ind ]
79+ self ._data_ind += 1
80+ return rval
8181
8282 def get_one (self ):
8383 """Iterates over self and returns first value
You can’t perform that action at this time.
0 commit comments