mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-25 02:50:17 +00:00
8 lines
215 B
Python
8 lines
215 B
Python
from typing import Any
|
|
|
|
def copyDict(source: Any, target: Any) -> None:
|
|
for key, value in source.items():
|
|
if isinstance(value, dict):
|
|
copyDict(value, target.setdefault(key, {}))
|
|
else:
|
|
target[key] = value
|