From d6468e428327de4b3d0fd5ce64e76d2cab679e82 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Mon, 17 Jun 2024 16:33:04 -0300 Subject: [PATCH] refactor: Remove warnings and update build_component function in loading.py --- src/backend/base/langflow/interface/initialize/loading.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/base/langflow/interface/initialize/loading.py b/src/backend/base/langflow/interface/initialize/loading.py index 841aaaf1f..4f4d5338c 100644 --- a/src/backend/base/langflow/interface/initialize/loading.py +++ b/src/backend/base/langflow/interface/initialize/loading.py @@ -123,9 +123,7 @@ async def build_component( ): # Now set the params as attributes of the custom_component custom_component.set_attributes(params) - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=PydanticDeprecatedSince20) - build_results, artifacts = await custom_component.build_results(vertex) + build_results, artifacts = await custom_component.build_results(vertex) return custom_component, build_results, artifacts