def _validate(self, value):
        if not isinstance(value, (int, long)):
            raise TypeError('expected an integer, got %s' % repr(value))
dataset/ETHPy150Open GoogleCloudPlatform/python-docs-samples/appengine/ndb/property_subclasses/my_models.py/LongIntegerProperty._validate/original