Skip to content

Commit

Permalink
Only populate kwargs if not there
Browse files Browse the repository at this point in the history
  • Loading branch information
caneff committed Sep 12, 2023
1 parent 944770e commit ee7a858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/dataframe/frame_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ def wrapper(*args, **kwargs):
# Still have to populate these for the Beam function signature.
if removed_args:
for name in removed_args:
kwargs[name] = None
if not name in kwargs:
kwargs[name] = None
return func(**kwargs)

return wrapper
Expand Down

0 comments on commit ee7a858

Please sign in to comment.