mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 09:33:07 +00:00
9 lines
215 B
Python
9 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]
|