Skip to content

Commit fab2ea3

Browse files
committed
Add __iter__ to Aggify
1 parent 18a1c0a commit fab2ea3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aggify/aggify.py

+4
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def __init__(self, base_model: Type[Document]):
6161
self.stop = None
6262
self.q = None
6363

64+
def __iter__(self):
65+
# Return a generator or iterator for the data you want to represent as a list
66+
return iter(self.pipelines)
67+
6468
@last_out_stage_check
6569
def project(self, **kwargs: QueryParams) -> "Aggify":
6670
"""

0 commit comments

Comments
 (0)