<#1312 [BUG][flytekit] Default input argument not ...
# flytekit
c
#1312 [BUG][flytekit] Default input argument not being considered in PythonInstanceTask Issue created by samhita-alla Describe the bug The default input argument is not being considered when calling the
PythonInstanceTask
. Observed this when building a task plugin. Task's `__init__()`: def __init__( self, ... **kwargs, ): ... inputs.update({"runtime": (bool, False)}) super(..., self).__init__( ... interface=Interface(inputs=inputs, outputs=outputs), **kwargs, ) Example: task_object = ...( ... inputs=kwtypes(dataset=str), ... ) @workflow def valid_wf(dataset: str = "...") -> None: task_object(dataset=dataset) valid_wf() Error: flytekit.common.exceptions.user.FlyteAssertion: Input was not specified for: runtime of type simple: BOOLEAN Expected behavior The above code shouldn't be throwing an error. [Optional] Additional context To Reproduce Steps to reproduce the behavior: 1. Same as the above code flow. Screenshots If applicable, add screenshots to help explain your problem. flyteorg/flyte