Skip to content

Commit

Permalink
Define __iter__ in LinearSubclassesIter too
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Dec 22, 2024
1 parent 2dcc337 commit 9ec9a9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/matroids/extension.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ cdef class LinearSubclassesIter:

self._nodes = [first_cut]

def __iter__(self):
return self

def __next__(self):
"""
Return the next linear subclass.
Expand Down

0 comments on commit 9ec9a9a

Please sign in to comment.