def validate(self, value):
    value = super(BooleanProperty, self).validate(value)
    if value is not None and not isinstance(value, bool):
      raise BadValueError('Property %s must be a bool' % self.name)
    return value
Initializes this class.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/BooleanProperty.validate--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/mcpu.py/LockAttemptTimeoutStrategy.__init__