@staticmethod
def parse(version: str) -> Version:
    if (re.match(VERSION_FORMAT, version) is None):
        raise ValueError(f'Illegal version string {version}')
    (major, minor, rev) = map((lambda v: int(v)), version.split('.'))
    return Version(major, minor, rev)
@staticmethod
def parse(version: str) -> Version:
    if (re.match(VERSION_FORMAT, version) is None):
        raise ValueError(f'Illegal version string {version}')
    (major, minor, rev) = map((lambda v: int(v)), version.split('.'))
    return Version(major, minor, rev)