From 782b3b86d610a5465fa4436a36b00366f808e2b6 Mon Sep 17 00:00:00 2001 From: dk Date: Mon, 12 Aug 2024 14:40:49 +0700 Subject: [PATCH] [syft/action_obj] remove redundant display warning --- packages/syft/src/syft/service/action/action_object.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/syft/src/syft/service/action/action_object.py b/packages/syft/src/syft/service/action/action_object.py index 1d596377c41..1196e3b5dc1 100644 --- a/packages/syft/src/syft/service/action/action_object.py +++ b/packages/syft/src/syft/service/action/action_object.py @@ -19,7 +19,6 @@ from typing import TYPE_CHECKING # third party -from IPython.display import display from pydantic import ConfigDict from pydantic import Field from pydantic import field_validator @@ -1425,13 +1424,6 @@ def from_obj( f"Error when creating action object for {syft_action_data}.\n" f"Unsupported data type: '{obj_type.__module__}.{obj_type.__name__}'" ) - can_be_serialized = SyftObjectRegistry.has_serde_class(canonical_name, version) - if not can_be_serialized: - warning = SyftWarning( - message=f"Object of type '{obj_type.__module__}.{obj_type.__name__}' " - f"is not supported by Syft serialization." - ) - display(warning) action_type = action_type_for_object(syft_action_data) action_object = action_type(syft_action_data_cache=syft_action_data)