Skip to content

Commit 4ec9b24

Browse files
committed
LCORE-2810: Fixed scripts
1 parent 21866ff commit 4ec9b24

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/latest-tag.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import os
44
import subprocess
5+
from typing import Optional
56

67

78
def version_split(value: str) -> tuple[int, ...]:
@@ -19,7 +20,7 @@ def is_prerelease(tag: str) -> bool:
1920
return any(n in tag for n in omit)
2021

2122

22-
def get_latest_stable() -> str | None:
23+
def get_latest_stable() -> Optional[str]:
2324
"""Return the latest stable tag."""
2425
stdout = subprocess.check_output(["git", "tag"], text=True)
2526
tags = [tag for tag in stdout.splitlines() if not is_prerelease(tag)]

0 commit comments

Comments
 (0)