From 13325ea89b53da401093b20009757535fd2af301 Mon Sep 17 00:00:00 2001 From: AlexandreKempf Date: Wed, 28 Feb 2024 10:58:30 +0100 Subject: [PATCH] use explicit code to fix copy bug --- dvc/repo/plots/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc/repo/plots/__init__.py b/dvc/repo/plots/__init__.py index 1a30190d8..fe526d289 100644 --- a/dvc/repo/plots/__init__.py +++ b/dvc/repo/plots/__init__.py @@ -538,7 +538,7 @@ def unpack_if_dir(fs, path, props: dict[str, str], onerror: Optional[Callable] = if "data" in unpacked: for subpath in unpacked["data"]: - result["data"].update({subpath: {} | props}) # avoid shared reference + result["data"].update({subpath: props.copy()}) else: result.update(unpacked)