remove context with to filter warnings

This commit is contained in:
cristhianzl 2024-06-17 14:12:45 -03:00
commit ef7e36ee14

View file

@ -123,8 +123,8 @@ async def build_component(
): ):
# Now set the params as attributes of the custom_component # Now set the params as attributes of the custom_component
custom_component.set_attributes(params) custom_component.set_attributes(params)
with warnings.filterwarnings("ignore", category=PydanticDeprecatedSince20): 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 return custom_component, build_results, artifacts