OpenQuizz
Une application de gestion des contenus pédagogiques
pyrsistent._checked_types Namespace Reference

Data Structures

class  _CheckedMapTypeMeta
 
class  _CheckedTypeMeta
 
class  CheckedKeyTypeError
 
class  CheckedPMap
 
class  CheckedPSet
 
class  CheckedPVector
 
class  CheckedType
 
class  CheckedTypeError
 
class  CheckedValueTypeError
 
class  InvariantException
 

Functions

def maybe_parse_user_type (t)
 
def maybe_parse_many_user_types (ts)
 
def wrap_invariant (invariant)
 
def store_invariants (dct, bases, destination_name, source_name)
 
def get_type (typ)
 
def get_types (typs)
 
def optional (*typs)
 

Function Documentation

◆ get_type()

def pyrsistent._checked_types.get_type (   typ)

◆ get_types()

def pyrsistent._checked_types.get_types (   typs)

◆ maybe_parse_many_user_types()

def pyrsistent._checked_types.maybe_parse_many_user_types (   ts)

◆ maybe_parse_user_type()

def pyrsistent._checked_types.maybe_parse_user_type (   t)
Try to coerce a user-supplied type directive into a list of types.

This function should be used in all places where a user specifies a type,
for consistency.

The policy for what defines valid user input should be clear from the implementation.

◆ optional()

def pyrsistent._checked_types.optional ( typs)
Convenience function to specify that a value may be of any of the types in type 'typs' or None 

◆ store_invariants()

def pyrsistent._checked_types.store_invariants (   dct,
  bases,
  destination_name,
  source_name 
)

◆ wrap_invariant()

def pyrsistent._checked_types.wrap_invariant (   invariant)