From 51e15e590cd2ac94fa9f11bfedc4e43642517344 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Wed, 15 May 2024 20:48:28 +0800 Subject: [PATCH] chore: Delete redundant lines Resolves: flyteorg/flyte#5321 Signed-off-by: Chi-Sheng Liu --- flytekit/core/promise.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/flytekit/core/promise.py b/flytekit/core/promise.py index 31ca1aa259..aaea0dfa9c 100644 --- a/flytekit/core/promise.py +++ b/flytekit/core/promise.py @@ -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