From b7c868350083c37418a8e35ccb91097a77b934be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Wed, 21 Feb 2024 10:28:59 +0545 Subject: [PATCH] fixup --- dvc/repo/index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/repo/index.py b/dvc/repo/index.py index 8fbb18eee83..2f764a786d6 100644 --- a/dvc/repo/index.py +++ b/dvc/repo/index.py @@ -359,7 +359,9 @@ def from_file(cls, repo: "Repo", path: str) -> "Index": params={path: dvcfile.params} if dvcfile.params else {}, artifacts={path: dvcfile.artifacts} if dvcfile.artifacts else {}, datasets={path: dvcfile.datasets} if dvcfile.datasets else {}, - datasets_lock={path: dvcfile.datasets_lock} if dvcfile.datasets else {}, + datasets_lock={path: dvcfile.datasets_lock} + if dvcfile.datasets_lock + else {}, ) def update(self, stages: Iterable["Stage"]) -> "Index":