def __new__(cls, date, fuzz=1):
    obj = super(Flexidate, cls).__new__(cls)
    assert isinstance(date, datetime.date), repr(date)
    assert not isinstance(date, datetime.datetime), repr(date)  # !!!
    assert isinstance(fuzz, (int, long)), repr(fuzz)
    assert fuzz >= 1, repr(fuzz)
    obj.__date = date
    obj.__fuzz = fuzz
    return obj
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/samples/custom.py/Flexidate.__new__/original