def __init__(self, func): if not util.callable(func): raise exc.ArgumentError('func must be callable') self.type = type_api.NULLTYPE self.func = func