def validate(self, value):
    value = super(DateProperty, self).validate(value)
    if isinstance(value, datetime.datetime):
      raise BadValueError('Property %s must be a %s, not a datetime' %
                          (self.name, self.data_type.__name__))
    return value
Expands given arrays.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/db/__init__.py/DateProperty.validate--crossover with--dataset/ETHPy150Open pfnet/chainer/cupy/manipulation/dims.py/expand_dims