def _parse_local_version(local: str) -> Optional[LocalType]:
    """
    Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
    """
    if local is not None:
        return tuple(
            part.lower() if not part.isdigit() else int(part)
            for part in _local_version_separators.split(local)
        )
    return None

    Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve").
    
product/gradle-plugin/src/main/python/setuptools/_vendor/packaging/version.py