main commit
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-16 16:30:25 +09:00
parent 91c7e04474
commit 537e7b363f
1146 changed files with 45926 additions and 77196 deletions

View File

@@ -1,5 +1,4 @@
import math
from typing import Union
INF = float("inf")
MINUS_INF = float("-inf")
@@ -23,14 +22,3 @@ def floatToGoString(d):
mantissa = f'{s[0]}.{s[1:dot]}{s[dot + 1:]}'.rstrip('0.')
return f'{mantissa}e+0{dot - 1}'
return s
def parse_version(version_str: str) -> tuple[Union[int, str], ...]:
version: list[Union[int, str]] = []
for part in version_str.split('.'):
try:
version.append(int(part))
except ValueError:
version.append(part)
return tuple(version)