Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions apyds/_ds.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,14 @@ class Search:
"""
...

def iter(self) -> Iterator:
"""Return an iterator over the search results.

Returns:
An Iterator object that can be used to iterate over rules.
"""
...

class Chain:
"""C++ binding for ds::chain_t."""

Expand Down Expand Up @@ -728,3 +736,23 @@ class Chain:
Returns:
The number of rules processed.
"""
...

def iter(self) -> Iterator:
"""Return an iterator over the chain results.

Returns:
An Iterator object that can be used to iterate over rules.
"""
...

class Iterator:
"""Iterator for Search and Chain results."""

def next(self) -> Optional[Rule]:
"""Get the next rule in the iteration.

Returns:
The next Rule object, or None if iteration is complete.
Comment on lines +750 to +756
"""
...
Loading