Skip to content

Remove public next method in favor of overloading __next__ method#22

Open
mberz wants to merge 1 commit intodevelopfrom
cleanup/simplify_next
Open

Remove public next method in favor of overloading __next__ method#22
mberz wants to merge 1 commit intodevelopfrom
cleanup/simplify_next

Conversation

@mberz
Copy link
Member

@mberz mberz commented May 9, 2025

Changes proposed in this pull request:

  • Remove the public next() method
  • Overload the __next__() method in each child class

This simplifies interfacing with the class.
Child classes always need to call the __next__() method to ensure that the buffer is started and blocked from external changes.

@mberz mberz added the enhancement New feature or request label May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant