Skip to content

Commit

Permalink
update comments for flyte types
Browse files Browse the repository at this point in the history
Signed-off-by: mao3267 <[email protected]>
  • Loading branch information
mao3267 committed Oct 24, 2024
1 parent a0f8401 commit f9b9cba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/core/type_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def _fix_structured_dataset_type(self, python_type: Type[T], python_val: typing.
def _make_dataclass_serializable(self, python_val: T, python_type: Type[T]) -> typing.Any:
"""
If any field inside the dataclass is flyte type, we should use flyte type transformer for that field.
Since other types are already serializable, this function is intended for using strings instead of directly creating Flyte files and directories in the dataclass.
Since Flyte types are already serializable, this function is intended for using strings instead of directly creating Flyte files and directories in the dataclass.
An example shows the lifecycle:
@dataclass
Expand Down

0 comments on commit f9b9cba

Please sign in to comment.