def check(version): v = parse(version) assert isinstance(v, Version), f'Invalid version: {version}' assert not version.startswith('v')