<#295 refactor(models): Use get_type_hints for par...
# flyte-github
a
#295 refactor(models): Use get_type_hints for param and return types Pull request opened by pingsutw We currently use
inspect.signature
when to read types at run time. But this breaks if delayed annotations is enabled (from future import annotations). This adds
typing.get_type_hints
to help when we call
from_callable
. However,
typing.get_type_hints
does not work for types that aren't defined at the module level. It doesn't capture closures and attempting to do so is something we can pursue in the future. flyteorg/flyte-sdk