def __repr__(self):
        return "<Requirement(package={package}, version='{version}')>".format(
            package=self.package, version=self.version)
def local_rank(self) -> int:
        return 0 if self._local_rank is None else self._local_rank