From 8c1b954ef05227e7bc063b286900b5a7cf732021 Mon Sep 17 00:00:00 2001 From: mecaneer23 Date: Mon, 29 Apr 2024 11:52:07 -0500 Subject: [PATCH] feat: add getter for debug queue internal representation --- src/debug_queue.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug_queue.py b/src/debug_queue.py index 058ab50..cba8696 100644 --- a/src/debug_queue.py +++ b/src/debug_queue.py @@ -32,3 +32,7 @@ def get(self, block: bool = True, timeout: float | None = None) -> T: def empty(self) -> bool: """Return True if the queue is empty""" return self.queue.empty() + + def get_items(self) -> list[T]: + """Get internal list of items from the queue""" + return self.items