Skip to content

Commit

Permalink
remove Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hussain-jafari committed Nov 6, 2024
1 parent 5a56bd8 commit dd17cba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vivarium_cluster_tools/psimulate/paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class InputPaths(NamedTuple):
"""

model_specification: Optional[Path]
model_specification: Path | None
"""The path to the model specification file."""
branch_configuration: Optional[Path]
branch_configuration: Path | None
"""The path to the branch configuration file."""
artifact: Optional[Path]
artifact: Path | None
"""The path to the data artifact."""
result_directory: Path
"""The path to the results directory."""
Expand Down Expand Up @@ -75,7 +75,7 @@ def from_entry_point_args(
)

@staticmethod
def _coerce_path(path: Optional[str]) -> Optional[Path]:
def _coerce_path(path: str | None) -> Path | None:
if path is not None:
return Path(path)

Expand Down Expand Up @@ -173,7 +173,7 @@ def from_entry_point_args(
cls,
*, # No positional args allowed.
command: str,
input_artifact_path: Optional[Path],
input_artifact_path: Path | None,
result_directory: Path,
input_model_spec_path: Path,
) -> "OutputPaths":
Expand Down

0 comments on commit dd17cba

Please sign in to comment.