(
        self,
        search_scope,         # type: SearchScope
        session,  # type: PipSession
        target_python,        # type: TargetPython
        allow_yanked,         # type: bool
        format_control=None,  # type: Optional[FormatControl]
        trusted_hosts=None,   # type: Optional[List[str]]
        candidate_prefs=None,         # type: CandidatePreferences
        ignore_requires_python=None,  # type: Optional[bool]
    )
This constructor is primarily meant to be used by the create() class
        method and from tests.

        :param session: The Session to use to make requests.
        :param format_control: A FormatControl object, used to control
            the selection of source packages / binary packages when consulting
            the index and links.
        :param candidate_prefs: Options to use when creating a
            CandidateEvaluator object.
This constructor is primarily meant to be used by the create() class
        method and from tests.
This constructor is primarily meant to be used by the create () class method and from tests .
def __init__(
        self,
        search_scope,         # type: SearchScope
        session,  # type: PipSession
        target_python,        # type: TargetPython
        allow_yanked,         # type: bool
        format_control=None,  # type: Optional[FormatControl]
        trusted_hosts=None,   # type: Optional[List[str]]
        candidate_prefs=None,         # type: CandidatePreferences
        ignore_requires_python=None,  # type: Optional[bool]
    ):
        # type: (...) -> None
        """
        This constructor is primarily meant to be used by the create() class
        method and from tests.

        :param session: The Session to use to make requests.
        :param format_control: A FormatControl object, used to control
            the selection of source packages / binary packages when consulting
            the index and links.
        :param candidate_prefs: Options to use when creating a
            CandidateEvaluator object.
        """
        if trusted_hosts is None:
            trusted_hosts = []
        if candidate_prefs is None:
            candidate_prefs = CandidatePreferences()

        format_control = format_control or FormatControl(set(), set())

        self._allow_yanked = allow_yanked
        self._candidate_prefs = candidate_prefs
        self._ignore_requires_python = ignore_requires_python
        self._target_python = target_python

        self.search_scope = search_scope
        self.session = session
        self.format_control = format_control
        self.trusted_hosts = trusted_hosts

        # These are boring links that have already been logged somehow.
        self._logged_links = set()
def __init__ ( self , search_scope , # type: SearchScope session , # type: PipSession target_python , # type: TargetPython allow_yanked , # type: bool format_control = None , # type: Optional[FormatControl] trusted_hosts = None , # type: Optional[List[str]] candidate_prefs = None , # type: CandidatePreferences ignore_requires_python = None , # type: Optional[bool] ) : # type: (...) -> None if trusted_hosts is None : trusted_hosts = [ ] if candidate_prefs is None : candidate_prefs = CandidatePreferences ( ) format_control = format_control or FormatControl ( set ( ) , set ( ) ) self . _allow_yanked = allow_yanked self . _candidate_prefs = candidate_prefs self . _ignore_requires_python = ignore_requires_python self . _target_python = target_python self . search_scope = search_scope self . session = session self . format_control = format_control self . trusted_hosts = trusted_hosts # These are boring links that have already been logged somehow. self . _logged_links = set ( )