From 0501ec73d09c778534e1f56929320646dbd80018 Mon Sep 17 00:00:00 2001 From: Jan Lasek Date: Mon, 18 Dec 2023 12:21:16 +0100 Subject: [PATCH] [NLP] ArtifactItem with init=True to make it debuggable (#7980) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ArtifactItem with init=True to make it debuggable Signed-off-by: Jan Lasek * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Initialize ArtifactItem with dummy values to keep changes minimal Signed-off-by: Jan Lasek --------- Signed-off-by: Jan Lasek Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: Piotr Żelasko --- nemo/utils/model_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nemo/utils/model_utils.py b/nemo/utils/model_utils.py index 845c6bdf9953..b2a6abbf54aa 100644 --- a/nemo/utils/model_utils.py +++ b/nemo/utils/model_utils.py @@ -54,10 +54,10 @@ class ArtifactPathType(Enum): TAR_PATH = 1 -@dataclass(init=False) +@dataclass class ArtifactItem: - path: str - path_type: ArtifactPathType + path: str = "" + path_type: ArtifactPathType = ArtifactPathType.LOCAL_PATH hashed_path: Optional[str] = None