mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2025-02-16 13:48:26 +00:00
8 lines
215 B
Python
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]
|