Skip to content

Commit

Permalink
chore: Delete redundant lines
Browse files Browse the repository at this point in the history
Resolves: flyteorg/flyte#5321
Signed-off-by: Chi-Sheng Liu <[email protected]>
  • Loading branch information
MortalHappiness committed May 15, 2024
1 parent 5be12cd commit 51e15e5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions flytekit/core/promise.py
Original file line number Diff line number Diff line change
Expand Up @@ -1073,17 +1073,8 @@ def create_and_link_node(
if k in interface.inputs_with_defaults:
kwargs[k] = interface.inputs_with_defaults[k][1]
else:
from flytekit.core.base_task import Task

error_msg = f"Input {k} of type {interface.inputs[k]} was not specified for function {entity.name}"

_, _default = interface.inputs_with_defaults[k]
if isinstance(entity, Task) and _default is not None:
error_msg += (
". Flyte workflow syntax is a domain-specific language (DSL) for building execution graphs which "
"supports a subset of Python’s semantics. When calling tasks, all kwargs have to be provided."
)

raise _user_exceptions.FlyteAssertion(error_msg)
v = kwargs[k]
# This check ensures that tuples are not passed into a function, as tuples are not supported by Flyte
Expand Down

0 comments on commit 51e15e5

Please sign in to comment.