Skip to content

Commit

Permalink
Fixed register error
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Sep 28, 2021
1 parent 79dd783 commit 29b14f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flytekit/core/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion flytekit/types/pickle/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class FlytePickle(object):
"""
This type is only used by flytekit. User should not use this type.
This type is only used by flytekit internally. User should not use this type.
Any type that flyte can't recognize will become FlytePickle
"""

Expand Down

0 comments on commit 29b14f3

Please sign in to comment.