def METHOD_NAME(target: Target) -> str:
    """Parse current version"""
    content = target.file.read_text()
    match = target.pattern.search(content)
    if match is None:
        raise ValueError(f"Unabled to detect version string: {target.file}")
    return match.groupdict()["version"]