<#3218 Check for extraneous arguments to task> Pul...
# flyte-github
c
#3218 Check for extraneous arguments to task Pull request opened by joe-polin ## Why are the changes needed? Currently, an extraneous argument passed to the task decorator (eg a mis-spelled argument) will fail silently. ## What changes were proposed in this pull request? After kwargs is checked for known argument names, raise an error if any arguments remain. This will help developers catch issues sooner, such as mis-typed arguments. ## How was this patch tested? Added a unit test that ensures the error is raised. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. (not necessary) • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link ### Summary by Bito This PR fixes a silent failure issue with the task decorator by implementing strict argument validation using kwargs.pop and raising ValueError for unknown parameters. Tests were enhanced to verify the error handling functionality, improving the debugging experience by catching misconfigured arguments early. Unit tests added: True Estimated effort to review (1-5, lower is better): 1 flyteorg/flytekit