(self, proposed_value)
return proposed_value
Type check the provided value and return it.

    The returned value might have been normalized to another type.
Type check the provided value and return it.
Type check the provided value and return it .
def CheckValue(self, proposed_value):
    """Type check the provided value and return it.

    The returned value might have been normalized to another type.
    """
    if not isinstance(proposed_value, self._acceptable_types):
      message = ('%.1024r has type %s, but expected one of: %s' %
                 (proposed_value, type(proposed_value), self._acceptable_types))
      raise TypeError(message)
    return proposed_value
def CheckValue ( self , proposed_value ) : if not isinstance ( proposed_value , self . _acceptable_types ) : message = ( '%.1024r has type %s, but expected one of: %s' % ( proposed_value , type ( proposed_value ) , self . _acceptable_types ) ) raise TypeError ( message ) return proposed_value