cuddly-jelly-27016
05/31/2025, 12:10 AMNon-Any type as the input with Any type.
Issue created by Mecoli1219
### Motivation: Why do you think this is important?
Intuitively, Any type should take every possible type as the input. Flytekit today supports using all Python types as the input, but it doesn't support
1. the non-Any output from another task.
2. the non-Any input from the workflow.
### Goal: What should the final outcome look like, ideally?
The following scenarios should succeed:
Scenario 1:
@task()
def foo(a: Any) -> int:
if type(a) == int:
return a + 1
return 0
@workflow
def wf(a: int) -> int:
return foo(a=a)
Scenario 2:
@workflow
def wf1(a: Any) -> int:
a1 = foo(a=a)
return foo(a=a1)
### Describe alternatives you've considered
Adding some tags as type hints for the transformer?
### Propose: Link/Inline OR Additional context
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/31/2025, 12:10 AM