podhmo/dictknife

Is this correct?

Closed this issue · 2 comments

import dictknife

left = {'arr': []}
right = {'arr': [1, 1]}

merge = dictknife.deepmerge(left, right)
print(f'mege = |{merge}|')

mege = |{'arr': [1]}|

METHODS = ["merge", "append", "addtoset", "replace"]
def deepmerge(*ds, override=False, method="addtoset"):

If it's not what you expect, you can use method options to change it.

I understand, Thank you