Skip to content

Commit

Permalink
[review comment] Use Python f“…” for formatting representations
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick M. Niedzielski <[email protected]>
  • Loading branch information
pniedzielski committed Nov 30, 2023
1 parent f16057a commit da487a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blazingmq/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit da487a0

Please sign in to comment.