(self, obj, k, v)
Verify we have a dict where every element is of the requested type
Verify we have a dict where every element is of the requested type
Verify we have a dict where every element is of the requested type
def _type_check_dict(self, obj, k, v):
        """
        Verify we have a dict where every element is of the requested type
        """
        vt = type(v)
        if self.kind != dict:
            raise Exception("%s, field %s: expected a dict of type %s, found a %s" % (obj, k, self.of, vt))
        if self.of:
            for (k2,v2) in v.items():
                self._type_check_object(obj, k, v2, self.of)
def _type_check_dict ( self , obj , k , v ) : vt = type ( v ) if self . kind != dict : raise Exception ( "%s, field %s: expected a dict of type %s, found a %s" % ( obj , k , self . of , vt ) ) if self . of : for ( k2 , v2 ) in v . items ( ) : self . _type_check_object ( obj , k , v2 , self . of )