class Completer:

    def __init__(self, commands):
        self.commands = commands

    def complete(self, text, state):
        options = [i for i in self.commands if i.startswith(text)]
        try:
            return options[state]
        except IndexError:
            return None

775f4fc146a755a5d5ff6d1145eaa2cf8d36bdee
<mask token>

class Completer:
    <mask token>
    <mask token>

class Completer:
    <mask token>

    def complete(self, text, state):
        options = [i for i in self.commands if i.startswith(text)]
        try:
            return options[state]
        except IndexError:
            return None

class Completer:

    def __init__(self, commands):
        self.commands = commands

    def complete(self, text, state):
        options = [i for i in self.commands if i.startswith(text)]
        try:
            return options[state]
        except IndexError:
            return None
