Exemplo n.º 1
0
    def accept(self, key: str) -> bool:
        self.inp += translate_char(key)

        return True
Exemplo n.º 2
0
    def accept(self, key):
        key = translate_char(key)
        assert len(key) == 1, 'only accepts a single char'
        self.inp = key

        return True
Exemplo n.º 3
0
 def accept(self, key):
     self.inp += translate_char(key)
     return True