Skip to content

Commit

Permalink
fix: patch bug in locals_to_params
Browse files Browse the repository at this point in the history
Calls to locals_to_params now handles nested params properly

issue: 1269
  • Loading branch information
danphenderson committed Feb 15, 2024
1 parent 8cd06e5 commit d06da44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion playwright/_impl/_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,11 @@ def locals_to_params(args: Dict) -> Dict:
if key == "self":
continue
if args[key] is not None:
copy[key] = args[key]
copy[key] = (
args[key]
if not isinstance(args[key], Dict)
else locals_to_params(args[key])
)
return copy


Expand Down

0 comments on commit d06da44

Please sign in to comment.