(self, options, session)
return PackageFinder.create(
            search_scope=search_scope,
            selection_prefs=selection_prefs,
            trusted_hosts=options.trusted_hosts,
            session=session,
        )
Create a package finder appropriate to this list command.
Create a package finder appropriate to this list command.
Create a package finder appropriate to this list command .
def _build_package_finder(self, options, session):
        """
        Create a package finder appropriate to this list command.
        """
        search_scope = make_search_scope(options)

        # Pass allow_yanked=False to ignore yanked versions.
        selection_prefs = SelectionPreferences(
            allow_yanked=False,
            allow_all_prereleases=options.pre,
        )

        return PackageFinder.create(
            search_scope=search_scope,
            selection_prefs=selection_prefs,
            trusted_hosts=options.trusted_hosts,
            session=session,
        )
def _build_package_finder ( self , options , session ) : search_scope = make_search_scope ( options ) # Pass allow_yanked=False to ignore yanked versions. selection_prefs = SelectionPreferences ( allow_yanked = False , allow_all_prereleases = options . pre , ) return PackageFinder . create ( search_scope = search_scope , selection_prefs = selection_prefs , trusted_hosts = options . trusted_hosts , session = session , )