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

Public Member Functions

def __init__ (self, max_attempt_number)
 
def __call__ (self, retry_state)
 
- Public Member Functions inherited from stop_base
def __and__ (self, other)
 
def __or__ (self, other)
 

Data Fields

 max_attempt_number
 

Detailed Description

Stop when the previous attempt >= max_attempt.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  max_attempt_number 
)

Member Function Documentation

◆ __call__()

def __call__ (   self,
  retry_state 
)

Reimplemented from stop_base.

Field Documentation

◆ max_attempt_number

max_attempt_number

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