def __init__(self,
            computed_type,
            fun,
            one_time=False,
            deps=None,
            **kwargs):
        ''' :param fun: the function to compute the value of the computed field
            :param computed_type: the type to use when wrapping the computed field
            :param deps: the names of fields on the current object which should be \
                passed in to compute the value
        '''
        super(ComputedField, self).__init__(**kwargs)
        self.computed_type = computed_type
        if deps is None:
            deps = set()
        self.deps = set(deps)
        self.fun = fun
        self.one_time = one_time
        self.__cached_value = UNSET
def __init__ ( self , computed_type , fun , one_time = False , deps = None , ** kwargs ) : super ( ComputedField , self ) . __init__ ( ** kwargs ) self . computed_type = computed_type if deps is None : deps = set ( ) self . deps = set ( deps ) self . fun = fun self . one_time = one_time self . __cached_value = UNSET
:param fun: the function to compute the value of the computed field
            :param computed_type: the type to use when wrapping the computed field
            :param deps: the names of fields on the current object which should be \
                passed in to compute the value