Skip to content

Commit

Permalink
feat: adds __iter__ method support to ActiveSequence (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdstein authored Nov 4, 2024
1 parent 0360b6a commit 0822eea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/posit/connect/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def __getitem__(self, index: slice) -> Sequence[T]: ...
def __getitem__(self, index):
return self._data[index]

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

def __len__(self) -> int:
return len(self._data)

Expand Down

0 comments on commit 0822eea

Please sign in to comment.