Skip to content

Commit

Permalink
[NLP] ArtifactItem with init=True to make it debuggable (#7980)
Browse files Browse the repository at this point in the history
* ArtifactItem with init=True to make it debuggable

Signed-off-by: Jan Lasek <janek.lasek@gmail.com>

* [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 <janek.lasek@gmail.com>

---------

Signed-off-by: Jan Lasek <janek.lasek@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
janekl and pre-commit-ci[bot] authored Dec 18, 2023
1 parent 8903fd9 commit 6b40e62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nemo/utils/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 6b40e62

Please sign in to comment.