From f055c99f5ab50cf8cae307e71360714ff6cb0908 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sun, 10 Dec 2023 20:33:55 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(field=5Ftyping):=20rename?= =?UTF-8?q?=20import=5Ftemplate=5Ffield()=20to=20=5Fimport=5Ftemplate=5Ffi?= =?UTF-8?q?eld()=20for=20internal=20use=20only=20=F0=9F=90=9B=20fix(field?= =?UTF-8?q?=5Ftyping):=20fix=20circular=20import=20issue=20by=20renaming?= =?UTF-8?q?=20import=5Ftemplate=5Ffield()=20to=20=5Fimport=5Ftemplate=5Ffi?= =?UTF-8?q?eld()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/field_typing/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/langflow/field_typing/__init__.py b/src/backend/langflow/field_typing/__init__.py index 6fd205798..46ea20111 100644 --- a/src/backend/langflow/field_typing/__init__.py +++ b/src/backend/langflow/field_typing/__init__.py @@ -27,7 +27,7 @@ from .constants import ( from .range_spec import RangeSpec -def import_template_field(): +def _import_template_field(): from langflow.template.field.base import TemplateField return TemplateField @@ -36,7 +36,7 @@ def import_template_field(): def __getattr__(name: str) -> Any: # This is to avoid circular imports if name == "TemplateField": - return import_template_field() + return _import_template_field() elif name == "RangeSpec": return RangeSpec # The other names should work as if they were imported from constants