From 452bf7dd21036d139187a0acb5c4e4f5ee113ee0 Mon Sep 17 00:00:00 2001 From: Kye Date: Fri, 1 Dec 2023 14:37:34 -0800 Subject: [PATCH] [FIX][execute_futures_dict --- futures.py | 4 ++-- swarms/memory/base.py | 2 +- swarms/utils/__init__.py | 2 +- swarms/utils/{futures.py => execute_futures.py} | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename swarms/utils/{futures.py => execute_futures.py} (100%) diff --git a/futures.py b/futures.py index 26e8247c6..6ebe26b98 100644 --- a/futures.py +++ b/futures.py @@ -1,7 +1,7 @@ import concurrent.futures import time import random -import swarms.utils.futures +import swarms.utils.execute_futures def f(x): @@ -11,4 +11,4 @@ def f(x): with concurrent.futures.ThreadPoolExecutor() as executor: fs_dict = {str(i): executor.submit(f, i) for i in range(10)} - print(swarms.utils.futures.execute_futures_dict(fs_dict)) + print(swarms.utils.execute_futures.execute_futures_dict(fs_dict)) diff --git a/swarms/memory/base.py b/swarms/memory/base.py index c0e8e4b6c..2e9574b84 100644 --- a/swarms/memory/base.py +++ b/swarms/memory/base.py @@ -3,7 +3,7 @@ from dataclasses import dataclass from typing import Optional, Any from attr import define, field, Factory -from swarms.utils.futures import execute_futures_dict +from swarms.utils.execute_futures import execute_futures_dict from griptape.artifacts import TextArtifact diff --git a/swarms/utils/__init__.py b/swarms/utils/__init__.py index 494f182ff..f6ee793d8 100644 --- a/swarms/utils/__init__.py +++ b/swarms/utils/__init__.py @@ -1,5 +1,5 @@ from swarms.utils.markdown_message import display_markdown_message -from swarms.utils.futures import execute_futures_dict +from swarms.utils.execute_futures import execute_futures_dict from swarms.utils.code_interpreter import SubprocessCodeInterpreter from swarms.utils.parse_code import ( extract_code_in_backticks_in_string, diff --git a/swarms/utils/futures.py b/swarms/utils/execute_futures.py similarity index 100% rename from swarms/utils/futures.py rename to swarms/utils/execute_futures.py