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: