mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 01:23:02 +00:00
a54521ec9e
More refactoring
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]
|