Fmt repr as multi-line style call

multihomed
Tyler Goodlet 2024-01-02 11:28:55 -05:00
parent fdf3a1b01b
commit 0bcdea28a0
1 changed files with 5 additions and 2 deletions

View File

@ -329,8 +329,11 @@ class Channel:
def __repr__(self) -> str:
if self.msgstream:
return repr(
self.msgstream.stream.socket._sock).replace( # type: ignore
"socket.socket", "Channel")
self.msgstream.stream.socket._sock
).replace( # type: ignore
"socket.socket",
"Channel",
)
return object.__repr__(self)
@property