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

Public Member Functions

def __init__ (self, source_class, field, expected_types, actual_type, *args, **kwargs)
 

Data Fields

 source_class
 
 field
 
 expected_types
 
 actual_type
 

Detailed Description

Raised when trying to assign a value with a type that doesn't match the declared type.

Attributes:
source_class -- The class of the record
field -- Field name
expected_types  -- Types allowed for the field
actual_type -- The non matching type

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  source_class,
  field,
  expected_types,
  actual_type,
args,
**  kwargs 
)

Field Documentation

◆ actual_type

actual_type

◆ expected_types

expected_types

◆ field

field

◆ source_class

source_class

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