OpenQuizz
Une application de gestion des contenus pédagogiques
FoundCandidates Class Reference
Inheritance diagram for FoundCandidates:
Collaboration diagram for FoundCandidates:

Public Member Functions

def __init__ (self, Callable[[], Iterator[IndexCandidateInfo]] get_infos, Optional[Candidate] installed, bool prefers_installed, Set[int] incompatible_ids)
 
def __getitem__ (self, index)
 
def __iter__ (self)
 
def __len__ (self)
 
def __bool__ (self)
 

Static Public Attributes

 maxsize
 

Detailed Description

A lazy sequence to provide candidates to the resolver.

The intended usage is to return this from `find_matches()` so the resolver
can iterate through the sequence multiple times, but only access the index
page when remote packages are actually needed. This improve performances
when suitable candidates are already installed on disk.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
Callable[[], Iterator[IndexCandidateInfo]]  get_infos,
Optional[Candidate installed,
bool  prefers_installed,
Set[int]  incompatible_ids 
)

Member Function Documentation

◆ __bool__()

def __bool__ (   self)

◆ __getitem__()

def __getitem__ (   self,
  index 
)

◆ __iter__()

def __iter__ (   self)

◆ __len__()

def __len__ (   self)

Field Documentation

◆ maxsize

maxsize
static

The documentation for this class was generated from the following file: