acoustic-carpenter-78188
05/11/2023, 8:11 AMAnnotated[FlyteFile, HashMethod(...)]
.
See the discussion on Slack for additional details.
Type
☑︎ Bug Fix
☐ Feature
☐ Plugin
Are all requirements met?
☑︎ Code completed
☑︎ Smoke tested
☑︎ Unit tests added
☐ Code documentation added
☐ Any pending items have an associated Issue
Complete description
Using an annotated FlyteFile type as an input to a task was previously impossible due to an exception being raised in FlyteFilePathTransformer.to_python_value
.
This MR applies the fix previously used in FlyteFilePathTransformer.to_literal
to permit using annotated FlyteFiles as either inputs or outputs of a task (see MR #1544), by unwrapping the origin type of the annotated type.
Tracking Issue
flyteorg/flyte#3424
Follow-up issue
NA
flyteorg/flytekit
✅ All checks have passed
30/30 successful checksacoustic-carpenter-78188
05/19/2023, 11:23 PM