def clean_semver(cls, version_spec):
        return re.sub(r"([<>=~])\s+?v?", "\\1", version_spec, re.IGNORECASE)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank