def METHOD_NAME(
    min_recommended: Optional[str],
    min_compatible: Optional[str],
    max_compatible: Optional[str],
) -> "VersionInfo":
    return VersionInfo(
        min_recommended=version.parse(min_recommended) if min_recommended else None,
        min_compatible=version.parse(min_compatible) if min_compatible else None,
        max_compatible=version.parse(max_compatible) if max_compatible else None,
    )