Skip to content

Commit

Permalink
Add iter method
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Feb 29, 2024
1 parent 52b6fa4 commit 31cd483
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trakt/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ def __init__(self, ids=None, **kwargs):
self._ids = ids
self._items = None

def __iter__(self):
return iter(self.items)

def __len__(self):
return len(self.items)

Expand Down

0 comments on commit 31cd483

Please sign in to comment.