diff --git a/flytekit/core/type_engine.py b/flytekit/core/type_engine.py index 90bcb877e8..f6ed3157ea 100644 --- a/flytekit/core/type_engine.py +++ b/flytekit/core/type_engine.py @@ -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