Skip to content

Commit

Permalink
Improve dict_merge from utils module
Browse files Browse the repository at this point in the history
Improve `dict_merge` from utils module
  • Loading branch information
JAVGan committed Sep 24, 2024
1 parent 4d47dc3 commit 13be8bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions starmap_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ def dict_merge(a: Dict[str, Any], b: Dict[str, Any]) -> Dict[str, Any]:
Returns:
dict: A new dictionary with combination of A and B.
"""
c = {}
for x in [a, b]:
assert_is_dict(x)
c.update(x)
return c
return a | b

0 comments on commit 13be8bb

Please sign in to comment.