Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
yangky11 committed Sep 18, 2024
1 parent 6db9fc7 commit 7f66e93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lean_dojo/data_extraction/lean.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,7 @@ def get_lean4_version_from_config(toolchain: str) -> str:
m = _LEAN4_VERSION_REGEX.fullmatch(toolchain.strip())
assert m is not None, "Invalid config."
v = m["version"]
if not v.startswith("v"):
assert v[0].isnumeric()
if not v.startswith("v") and v[0].isnumeric():
v = "v" + v
return v

Expand Down

0 comments on commit 7f66e93

Please sign in to comment.