

def __init__(self, text, function, args=None, kwargs=None, menu=None, should_exit=False):
    "\n        :ivar function: The function to be called\n        :ivar list args: An optional list of arguments to be passed to the function\n        :ivar dict kwargs: An optional dictionary of keyword arguments to be passed to the function\n        :ivar return_value: the value returned by the function, None if it hasn't been called yet.\n        "
    super(FunctionItem, self).__init__(text=text, menu=menu, should_exit=should_exit)
    self.function = function
    if (args is not None):
        self.args = args
    else:
        self.args = []
    if (kwargs is not None):
        self.kwargs = kwargs
    else:
        self.kwargs = {
            
        }
    menu.return_value = None

dataset/ETHPy150Open pmbarrett314/curses-menu/cursesmenu/items/function_item.py FunctionItem.__init__/VarMisuse@120/261 `self`->`menu`