def get_function_parameters(callDef):
    if not callDef:
        return []

    params = []
    for param in callDef.params:
        # logger.info("%s %s" % (param.name, param.description))

        # when you writing a callable object
        # jedi tring to complete incompleted object
        # and returns "empty" calldefinition
        # in this case we have to skip it
        if not param.name:
            continue

        cleaned_param = param.description.rstrip(',')
        if '*' in cleaned_param or cleaned_param in ['self', '...']:
            continue
        params.append([s.strip() for s in cleaned_param.split('=')])
    return params
Return list function parameters, prepared for sublime completion.
dataset/ETHPy150Open srusskih/SublimeJEDI/sublime_jedi/daemon.py/get_function_parameters