mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-03 06:47:05 +08:00
Corrected files to comply with ruff formatting
This commit is contained in:
parent
56981f5da4
commit
de49e6e1f7
@ -31,7 +31,7 @@ This error is happening because the ComfyUI frontend is no longer shipped as par
|
|||||||
|
|
||||||
def parse_version(version: str) -> tuple[int, int, int]:
|
def parse_version(version: str) -> tuple[int, int, int]:
|
||||||
return tuple(map(int, version.split(".")))
|
return tuple(map(int, version.split(".")))
|
||||||
|
|
||||||
def is_valid_version(version: str) -> bool:
|
def is_valid_version(version: str) -> bool:
|
||||||
"""Validate if a string is a valid semantic version (X.Y.Z format)."""
|
"""Validate if a string is a valid semantic version (X.Y.Z format)."""
|
||||||
pattern = r"^(\d+)\.(\d+)\.(\d+)$"
|
pattern = r"^(\d+)\.(\d+)\.(\d+)$"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user