Skip to content

Commit

Permalink
feat: fix: Fix extra keyword args
Browse files Browse the repository at this point in the history
  • Loading branch information
Stainless Bot committed Nov 27, 2024
1 parent cd5b47b commit c2ac39d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/julep/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ def patched_method(*args: P.args, **kwargs: P.kwargs):
bound_args.apply_defaults()

# Separate extra keyword arguments
extra_kwargs = {}
for key in list(bound_args.arguments.keys()):
if key not in allowed_kwargs and key not in params:
# This key is neither in allowed_kwargs nor a positional argument
extra_kwargs[key] = bound_args.arguments.pop(key)
extra_kwargs = {k: v for k, v in kwargs.items() if k not in allowed_kwargs and k not in params}

# If there are extra keyword arguments, merge them into 'extra_body'
if extra_kwargs:
Expand Down

0 comments on commit c2ac39d

Please sign in to comment.