Skip to content

Commit

Permalink
add print
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed May 25, 2024
1 parent 55f2379 commit 45ed98a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flytekit/types/pickle/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def assert_type(self, t: Type[T], v: T):
...

def to_python_value(self, ctx: FlyteContext, lv: Literal, expected_python_type: Type[T]) -> T:
print("@@@ lv.scalar:", lv.scalar)
print("@@@ lv.metadata:", lv.metadata)
try:
uri = lv.scalar.blob.uri
return FlytePickle.from_pickle(uri)
Expand All @@ -98,6 +100,8 @@ def to_python_value(self, ctx: FlyteContext, lv: Literal, expected_python_type:
if py_type != typing.Any:
return TypeEngine.to_python_value(ctx, lv, py_type)
raise e




def to_literal(self, ctx: FlyteContext, python_val: T, python_type: Type[T], expected: LiteralType) -> Literal:
Expand Down

0 comments on commit 45ed98a

Please sign in to comment.