Make the repr for KeyAction more compact

This commit is contained in:
Kovid Goyal
2021-05-28 11:52:31 +05:30
parent 5470dd74bd
commit f976851442

View File

@@ -50,6 +50,11 @@ class KeyAction(NamedTuple):
func: str
args: Sequence[str] = ()
def __repr__(self) -> str:
if self.args:
return f'KeyAction({self.func!r}, {self.args!r})'
return f'KeyAction({self.func!r})'
class InvalidMods(ValueError):
pass