Skip to content

Commit

Permalink
Replace | with Union (#1103)
Browse files Browse the repository at this point in the history
Co-authored-by: Patrick Huck <[email protected]>
  • Loading branch information
orionarcher and tschaume authored Sep 19, 2024
1 parent 9db67da commit 0a8792a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmet-core/emmet/core/openmm/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 0a8792a

Please sign in to comment.