diff --git a/flytekit/core/interface.py b/flytekit/core/interface.py index 492a103c50..fc411ea6ad 100644 --- a/flytekit/core/interface.py +++ b/flytekit/core/interface.py @@ -308,7 +308,7 @@ def transform_variable_map( for k, v in variable_map.items(): res[k] = transform_type(v, descriptions.get(k, k)) if isinstance(v, FlytePickle): - res[k].type.metadata = {"python_class_name": typing.cast(FlytePickle, v.python_type)} + res[k].type.metadata = {"python_class_name": typing.cast(FlytePickle, v.python_type.__name__)} return res