Skip to content

Commit

Permalink
Merge pull request #913 from treasure-data/default-args
Browse files Browse the repository at this point in the history
Fix default argument check on py> operator
  • Loading branch information
muga authored Jan 27, 2019
2 parents e5bb970 + 503c4cf commit 8d5bcaa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def digdag_inspect_arguments(callable_type, exclude_self, params):
if key in params:
args[key] = params[key]
else:
if spec.defaults is None or len(spec.defaults) < idx:
if spec.defaults is None or idx < len(spec.args) - len(spec.defaults):
# this keyword is required but not in params. raising an error.
if hasattr(callable_type, '__qualname__'):
# Python 3
Expand Down

0 comments on commit 8d5bcaa

Please sign in to comment.