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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/peter/venv/lib/python3.10/site-packages/pyalex/api.py", line 137, in __next__
if self._next_value is None or self._is_max():
File "/home/peter/venv/lib/python3.10/site-packages/pyalex/api.py", line 132, in _is_max
if self.n_max and self.n >= self.n_max:
AttributeError: 'Paginator' object has no attribute 'n'
Given that the name of the class is Paginator I expected it to be an iterator (i.e., allow calling __next__).
The text was updated successfully, but these errors were encountered:
The paginator class implements both
__iter__
and__next__
, but if you call__next__
before__iter__
you get an error:gives:
Given that the name of the class is
Paginator
I expected it to be an iterator (i.e., allow calling__next__
).The text was updated successfully, but these errors were encountered: