discord-rich-presence-plex/utils/dict.py
2022-05-12 12:44:23 +05:30

8 lines
215 B
Python

from typing import Any
def merge(source: Any, target: Any) -> None:
for key, value in source.items():
if isinstance(value, dict):
merge(value, target.setdefault(key, {}))
else:
target[key] = source[key]