def parse(version: str) -> tuple[int, int, int]:
    """Parsing semver into 3 integers: major, minor, patch"""
    validate(version)
    parts = version.split(".")
    return int(parts[0]), int(parts[1]), int(parts[2])
Parsing semver into 3 integers: major, minor, patch
src/datachain/semver.py