Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
rihi committed Feb 29, 2024
1 parent caff59b commit f147226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_for_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
new_version = time.strftime("%Y-%m-%d")

if old_version.startswith(new_version):
patch = int(old_version[index + 1:]) if (index := old_version.rfind(".")) != -1 else 0
patch = int(old_version[index + 1 :]) if (index := old_version.rfind(".")) != -1 else 0
new_version += f".{patch + 1}"

data["version"] = new_version
Expand Down

0 comments on commit f147226

Please sign in to comment.