def name(self):
        # type: () -> str
        """The normalised name of the project the candidate refers to"""
        if self._name is None:
            self._name = canonicalize_name(self.dist.project_name)
        return self._name
The normalised name of the project the candidate refers to
product/gradle-plugin/src/main/python/pip/_internal/resolution/resolvelib/candidates.py