Skip to content

Commit

Permalink
fix: avoid using the dictionary union operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Apr 11, 2024
1 parent 5b88f6d commit 0166432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion parametrize_from_file/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ def rename(names=None, /, **kwarg_names):
Any parameters not explicitly mentioned will be kept unchanged.
"""
names = (names or {}) | kwarg_names
names = {
**(names or {}),
**kwarg_names,
}
return lambda params: {
names.get(k, k): v
for k, v in params.items()
Expand Down

0 comments on commit 0166432

Please sign in to comment.