Skip to content

Commit e328aae

Browse files
authored
Memory creation type bug fix (#134)
* Memory creation type bug fix and added return types to fetch_memory_files
1 parent cd634e6 commit e328aae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

memory_management.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
class MemoryManager:
1515

1616
@staticmethod
17-
def fetch_memory_files(memory_folder: str):
17+
def fetch_memory_files(memory_folder: str) -> tuple[list[str], dict[str, str]]:
1818
"""Fetch memory files from memory_folder/conformance_test_memory."""
1919
memory_path = os.path.join(memory_folder, CONFORMANCE_TEST_MEMORY_SUBFOLDER)
2020
if not os.path.exists(memory_path):
21-
return {}, {}
21+
return [], {}
2222
memory_files = file_utils.list_all_text_files(memory_path)
2323
memory_files_content = file_utils.get_existing_files_content(memory_path, memory_files)
2424
console.info(f"Loaded {len(memory_files_content)} memory files.")

0 commit comments

Comments
 (0)