From e81ed23c7bc28b55dbbac65cb5ac48f672fb0f78 Mon Sep 17 00:00:00 2001 From: orionarcher Date: Wed, 18 Sep 2024 13:42:20 -0400 Subject: [PATCH] Replace | with Union --- emmet-core/emmet/core/openmm/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emmet-core/emmet/core/openmm/tasks.py b/emmet-core/emmet/core/openmm/tasks.py index 3096ce1834..3c65363a35 100644 --- a/emmet-core/emmet/core/openmm/tasks.py +++ b/emmet-core/emmet/core/openmm/tasks.py @@ -152,7 +152,7 @@ class CalculationOutput(BaseModel): @classmethod def from_directory( cls, - dir_name: Path | str, + dir_name: Union[Path, str], state_file_name: str, traj_file_name: str, elapsed_time: Optional[float] = None, @@ -243,7 +243,7 @@ class OpenMMTaskDocument(MDTaskDocument): "task document.", ) - interchange_meta: Optional[list[MoleculeSpec] | Structure | str] = Field( + interchange_meta: Optional[Union[list[MoleculeSpec], Structure, str]] = Field( None, title="Interchange meta data", description="Metadata for the interchange",