Skip to content

Commit

Permalink
[syft/action_obj] remove redundant display warning
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed Aug 12, 2024
1 parent a879c90 commit 782b3b8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/syft/src/syft/service/action/action_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 782b3b8

Please sign in to comment.