From fb75e190728fb78c5b8721bee383c0dc849fb1d1 Mon Sep 17 00:00:00 2001 From: VitjanZ Date: Tue, 17 Mar 2026 16:31:07 +0100 Subject: [PATCH 1/2] Memory creation type bug fix --- memory_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory_management.py b/memory_management.py index 08703f5..684f0cc 100644 --- a/memory_management.py +++ b/memory_management.py @@ -18,7 +18,7 @@ def fetch_memory_files(memory_folder: str): """Fetch memory files from memory_folder/conformance_test_memory.""" memory_path = os.path.join(memory_folder, CONFORMANCE_TEST_MEMORY_SUBFOLDER) if not os.path.exists(memory_path): - return {}, {} + return [], {} memory_files = file_utils.list_all_text_files(memory_path) memory_files_content = file_utils.get_existing_files_content(memory_path, memory_files) console.info(f"Loaded {len(memory_files_content)} memory files.") From b9933ecd22c6bf56ccec237b6a180d3d2de1e617 Mon Sep 17 00:00:00 2001 From: VitjanZ Date: Tue, 17 Mar 2026 16:52:07 +0100 Subject: [PATCH 2/2] Added return types to fetch_memory_files --- memory_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory_management.py b/memory_management.py index 684f0cc..e9a09e7 100644 --- a/memory_management.py +++ b/memory_management.py @@ -14,7 +14,7 @@ class MemoryManager: @staticmethod - def fetch_memory_files(memory_folder: str): + def fetch_memory_files(memory_folder: str) -> tuple[list[str], dict[str, str]]: """Fetch memory files from memory_folder/conformance_test_memory.""" memory_path = os.path.join(memory_folder, CONFORMANCE_TEST_MEMORY_SUBFOLDER) if not os.path.exists(memory_path):