diff --git a/flytekit/core/promise.py b/flytekit/core/promise.py index bcca33e240..de4b94f9f8 100644 --- a/flytekit/core/promise.py +++ b/flytekit/core/promise.py @@ -1077,17 +1077,8 @@ def create_and_link_node( raise _user_exceptions.FlyteAssertion("Cannot use non-hashable object as default argument") kwargs[k] = default_val 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