Skip to content

Commit 1275da0

Browse files
committed
use deepcopy for theme configuration to prevent unintended modifications
1 parent f119aa2 commit 1275da0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/utils/styling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import yaml
99
from pathlib import Path
1010
from typing import Dict, Any
11+
import copy
1112

1213

1314
def _load_theme_config() -> Dict[str, Any]:
@@ -87,4 +88,4 @@ def get_theme_config() -> Dict[str, Any]:
8788
Returns:
8889
Dictionary containing all theme settings
8990
"""
90-
return _THEME.copy()
91+
return copy.deepcopy(_THEME)

0 commit comments

Comments
 (0)