(self, link_evaluator, link)
return InstallationCandidate(
            project=link_evaluator.project_name,
            link=link,
            # Convert the Text result to str since InstallationCandidate
            # accepts str.
            version=str(result),
        )
If the link is a candidate for install, convert it to an
        InstallationCandidate and return it. Otherwise, return None.
If the link is a candidate for install, convert it to an
        InstallationCandidate and return it. Otherwise, return None.
If the link is a candidate for install convert it to an InstallationCandidate and return it . Otherwise return None .
def get_install_candidate(self, link_evaluator, link):
        # type: (LinkEvaluator, Link) -> Optional[InstallationCandidate]
        """
        If the link is a candidate for install, convert it to an
        InstallationCandidate and return it. Otherwise, return None.
        """
        is_candidate, result = link_evaluator.evaluate_link(link)
        if not is_candidate:
            if result:
                self._log_skipped_link(link, reason=result)
            return None

        return InstallationCandidate(
            project=link_evaluator.project_name,
            link=link,
            # Convert the Text result to str since InstallationCandidate
            # accepts str.
            version=str(result),
        )
def get_install_candidate ( self , link_evaluator , link ) : # type: (LinkEvaluator, Link) -> Optional[InstallationCandidate] is_candidate , result = link_evaluator . evaluate_link ( link ) if not is_candidate : if result : self . _log_skipped_link ( link , reason = result ) return None return InstallationCandidate ( project = link_evaluator . project_name , link = link , # Convert the Text result to str since InstallationCandidate # accepts str. version = str ( result ) , )