<#1544 Make `FlyteFile` compatible with `Annotated...
# flyte-github
a
#1544 Make `FlyteFile` compatible with `Annotated[..., HashMethod]` Pull request opened by AdrianoKF See issue #3424 TL;DR This PR makes `FlyteFile`s usable with offloaded hash calculation via
Annotated[FlyteFile, HashMethod(...)]
, so that they can be cached based on file contents, e.g. 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 In
FlyteFilePathTransformer.to_literal()
,
Annotated
type aliases are now handled by unwrapping the first type argument to the alias, before checking if they are a subclass of
FlyteFile
. Tracking Issue flyteorg/flyte#3424 Follow-up issue NA flyteorg/flytekit ✅ All checks have passed 30/30 successful checks