Skip to content

Commit

Permalink
Fixes boundary conditions for literal convertor (flyteorg#2596)
Browse files Browse the repository at this point in the history
* Fixes boundary conditions for literal convertor

Signed-off-by: Ketan Umare <[email protected]>

* Better fix

Signed-off-by: Ketan Umare <[email protected]>

---------

Signed-off-by: Ketan Umare <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Ketan Umare <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
3 people authored and otarabai committed Oct 15, 2024
1 parent c94a9c5 commit db519e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flytekit/core/type_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,9 @@ async def _literal_map_to_kwargs(
else:
python_interface_inputs = python_types # type: ignore

if not python_interface_inputs or len(python_interface_inputs) == 0:
return {}

if len(lm.literals) > len(python_interface_inputs):
raise ValueError(
f"Received more input values {len(lm.literals)}"
Expand Down

0 comments on commit db519e7

Please sign in to comment.