

def complete(self, text, state):
    if (state == 0):
        self.matches = filter((lambda choice: choice.startswith(text)), choice.choices)
    if ((self.matches is not None) and (state < len(self.matches))):
        return self.matches[state]
    else:
        return None

dataset/ETHPy150Open dnanexus/dx-toolkit/src/python/dxpy/templating/utils.py Completer.complete/VarMisuse@41/43 `self`->`choice`