From da487a05e71601d206a4e0d7a420788d959c8fd1 Mon Sep 17 00:00:00 2001 From: "Patrick M. Niedzielski" Date: Thu, 30 Nov 2023 13:52:29 -0500 Subject: [PATCH] =?UTF-8?q?[review=20comment]=20Use=20Python=20f=E2=80=9C?= =?UTF-8?q?=E2=80=A6=E2=80=9D=20for=20formatting=20representations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick M. Niedzielski --- src/blazingmq/_session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blazingmq/_session.py b/src/blazingmq/_session.py index 7003b7f..f526a73 100644 --- a/src/blazingmq/_session.py +++ b/src/blazingmq/_session.py @@ -218,7 +218,7 @@ def __repr__(self) -> str: if value is not None: params.append(f"{attr}={value!r}") - return "QueueOptions(%s)" % ", ".join(params) + return f"QueueOptions({', '.join(params)})" class Timeouts: @@ -293,7 +293,7 @@ def __repr__(self) -> str: if value is not None: params.append(f"{attr}={value!r}") - return "Timeouts(%s)" % ", ".join(params) + return f"Timeouts({', '.join(params)})" class SessionOptions: @@ -402,7 +402,7 @@ def __repr__(self) -> str: if value is not None: params.append(f"{attr}={value!r}") - return "SessionOptions(%s)" % ", ".join(params) + return f"SessionOptions({', '.join(params)})" class Session: