Skip to content

Commit

Permalink
fix: exception when using combos with match_coord
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton K. (ai Doge) authored and xs5871 committed Aug 1, 2023
1 parent 1614cb9 commit 9d28439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kmk/modules/combos.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ def __init__(
self._match_coord = match_coord

def __repr__(self):
return f'{self.__class__.__name__}({[k.code for k in self.match]})'
if self._match_coord:
return f'{self.__class__.__name__}({[k for k in self.match]})'
else:
return f'{self.__class__.__name__}({[k.code for k in self.match]})'

def matches(self, key: Key, int_coord: int):
raise NotImplementedError
Expand Down

0 comments on commit 9d28439

Please sign in to comment.