def name(self):
        # type: () -> str
        """The normalised name of the project the candidate refers to"""
        return format_name(self.base.name, self.extras)
The normalised name of the project the candidate refers to
product/gradle-plugin/src/main/python/pip/_internal/resolution/resolvelib/candidates.py