

def __call__(self, prefix, **kwargs):
    'only called on non option completions'
    if (os.path.sep in prefix[1:]):
        prefix_dir = len((os.path.dirname(completion) + os.path.sep))
    else:
        prefix_dir = 0
    completion = []
    globbed = []
    if (('*' not in prefix) and ('?' not in prefix)):
        if (prefix[(- 1)] == os.path.sep):
            globbed.extend(glob((prefix + '.*')))
        prefix += '*'
    globbed.extend(glob(prefix))
    for x in sorted(globbed):
        if os.path.isdir(x):
            x += '/'
        completion.append(x[prefix_dir:])
    return completion

dataset/ETHPy150Open pytest-dev/pytest/_pytest/_argcomplete.py FastFilesCompleter.__call__/VarMisuse@45/63 `prefix`->`completion`