Skip to content

Commit 0577071

Browse files
committed
feat: adds __iter__ method support to ActiveSequence
1 parent 0360b6a commit 0577071

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/posit/connect/resources.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,9 @@ def __getitem__(self, index: slice) -> Sequence[T]: ...
162162
def __getitem__(self, index):
163163
return self._data[index]
164164

165+
def __iter__(self):
166+
return iter(self._data)
167+
165168
def __len__(self) -> int:
166169
return len(self._data)
167170

0 commit comments

Comments
 (0)