From 4ffcacad9a30b499859f86bd977d3b498a8210aa Mon Sep 17 00:00:00 2001 From: alicetries <92898519+alicetries@users.noreply.github.com> Date: Mon, 28 Mar 2022 23:38:48 +0100 Subject: [PATCH] Small tweak to how repr() of Formatless() displays --- ircrobots/matching/params.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ircrobots/matching/params.py b/ircrobots/matching/params.py index c038db4..ec2e8ff 100644 --- a/ircrobots/matching/params.py +++ b/ircrobots/matching/params.py @@ -73,8 +73,7 @@ class Formatless(IMatchResponseParam): def __init__(self, value: TYPE_MAYBELIT_VALUE): self._value = _assure_lit(value) def __repr__(self) -> str: - brepr = super().__repr__() - return f"Formatless({brepr})" + return f"Formatless({self._value!r})" def match(self, server: IServer, arg: str) -> bool: strip = formatting.strip(arg) return self._value.match(server, strip)