Commit Graph
2 Commits
Author SHA1 Message Date
hemna 868cb8c3dc fix: remove mutable class-level data: list = [] from RingBuffer (#269)
The class-level annotation 'data: list = []' creates a single list shared
among all instances.  While __init__ already rebinds self.data = [], the
class-level default is confusing and fragile.

Remove the class-level default; move the annotation to __init__.

Closes #250
2026-08-28 14:36:59 -04:00
hemna d0dfaa42e6 Added unit tests 2025-12-09 17:20:23 -05:00