From f2e4a93df5394c38af4173d0aca9866e409e4cc5 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 11 Jun 2023 18:08:20 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(base.py):=20remove=20unused?= =?UTF-8?q?=20import=20of=20logger=20=F0=9F=8E=A8=20refactor(run.py):=20up?= =?UTF-8?q?date=20import=20statement=20for=20compute=5Fdict=5Fhash,=20load?= =?UTF-8?q?=5Fcache,=20and=20memoize=5Fdict=20The=20import=20of=20logger?= =?UTF-8?q?=20in=20base.py=20was=20not=20being=20used,=20so=20it=20was=20r?= =?UTF-8?q?emoved=20to=20improve=20code=20readability.=20In=20run.py,=20th?= =?UTF-8?q?e=20import=20statement=20for=20compute=5Fdict=5Fhash,=20load=5F?= =?UTF-8?q?cache,=20and=20memoize=5Fdict=20was=20updated=20to=20reflect=20?= =?UTF-8?q?the=20new=20location=20of=20these=20functions=20in=20the=20cach?= =?UTF-8?q?e.utils=20module.=20This=20improves=20the=20organization=20of?= =?UTF-8?q?=20the=20code=20and=20makes=20it=20easier=20to=20find=20the=20r?= =?UTF-8?q?elevant=20functions.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/graph/graph/base.py | 1 - src/backend/langflow/interface/run.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backend/langflow/graph/graph/base.py b/src/backend/langflow/graph/graph/base.py index 3653a0ec5..1e9d1f10f 100644 --- a/src/backend/langflow/graph/graph/base.py +++ b/src/backend/langflow/graph/graph/base.py @@ -10,7 +10,6 @@ from langflow.graph.vertex.types import ( ) from langflow.interface.tools.constants import FILE_TOOLS from langflow.utils import payload -from langflow.utils.logger import logger class Graph: diff --git a/src/backend/langflow/interface/run.py b/src/backend/langflow/interface/run.py index 89f71fd8b..6fe4c089b 100644 --- a/src/backend/langflow/interface/run.py +++ b/src/backend/langflow/interface/run.py @@ -1,4 +1,4 @@ -from langflow.cache.base import compute_dict_hash, load_cache, memoize_dict +from langflow.cache.utils import compute_dict_hash, load_cache, memoize_dict from langflow.graph import Graph from langflow.utils.logger import logger