Skip to content

Commit

Permalink
type error in ML workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amandarichardsonn committed Aug 2, 2024
1 parent 202f629 commit f9c9d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smartsim/_core/generation/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def _build_operations(self, job: Job, job_path: pathlib.Path) -> None:
self._write_tagged_files(app, job_path)

Check warning on line 154 in smartsim/_core/generation/generator.py

View check run for this annotation

Codecov / codecov/patch

smartsim/_core/generation/generator.py#L151-L154

Added lines #L151 - L154 were not covered by tests

@staticmethod
def _copy_files(files: EntityFiles | None, dest: pathlib.Path) -> None:
def _copy_files(files: t.Union[EntityFiles, None], dest: pathlib.Path) -> None:
"""Perform copy file sys operations on a list of files.
:param app: The Application attached to the Job
Expand Down Expand Up @@ -189,7 +189,7 @@ def _copy_files(files: EntityFiles | None, dest: pathlib.Path) -> None:
)

@staticmethod
def _symlink_files(files: EntityFiles | None, dest: pathlib.Path) -> None:
def _symlink_files(files: t.Union[EntityFiles, None], dest: pathlib.Path) -> None:
"""Perform symlink file sys operations on a list of files.
:param app: The Application attached to the Job
Expand Down

0 comments on commit f9c9d56

Please sign in to comment.