Skip to content

Commit

Permalink
remove python3.10 syntax for type union
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed Jan 21, 2024
1 parent 48a1f35 commit d371459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lean_dojo/data_extraction/lean.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)


def cleanse_string(s: str | Path) -> str:
def cleanse_string(s: Union[str, Path]) -> str:
"""Replace : and / with _ in a string."""
return str(s).replace("/", "_").replace(":", "_")

Expand Down

0 comments on commit d371459

Please sign in to comment.