diff --git a/src/vivarium_cluster_tools/psimulate/paths.py b/src/vivarium_cluster_tools/psimulate/paths.py index d7bf5728..c655b62f 100644 --- a/src/vivarium_cluster_tools/psimulate/paths.py +++ b/src/vivarium_cluster_tools/psimulate/paths.py @@ -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.""" @@ -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) @@ -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":