refactor: Ignore Pydantic deprecation warning when building component

This commit is contained in:
ogabrielluiz 2024-06-17 14:33:33 -03:00
commit 6e772f54c6

View file

@ -123,6 +123,7 @@ 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.catch_warnings():
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)