@@ -159,8 +159,9 @@ def __repr__(self) -> str:
159159 @property
160160 def dataset (self ) -> str :
161161 """
162- Return the dataset for this live client. If no subscriptions have been
163- made an empty string will be returned.
162+ Return the dataset for this live client.
163+
164+ If no subscriptions have been made an empty string will be returned.
164165
165166 Returns
166167 -------
@@ -234,8 +235,9 @@ def port(self) -> int:
234235 @property
235236 def session_id (self ) -> str | None :
236237 """
237- Return the session ID for the current session. If `None`, the client is
238- not connected.
238+ Return the session ID for the current session.
239+
240+ If `None`, the client is not connected.
239241
240242 Returns
241243 -------
@@ -279,8 +281,9 @@ def subscription_requests(
279281 @property
280282 def symbology_map (self ) -> dict [int , str | int ]:
281283 """
282- Return the symbology map for this client session. A symbol mapping is
283- added when the client receives a SymbolMappingMsg.
284+ Return the symbology map for this client session.
285+
286+ A symbol mapping is added when the client receives a SymbolMappingMsg.
284287
285288 This can be used to transform an `instrument_id` in a DBN record
286289 to the input symbology.
@@ -398,8 +401,9 @@ def add_reconnect_callback(
398401 exception_callback : ExceptionCallback | None = None ,
399402 ) -> None :
400403 """
401- Add a callback for handling client reconnection events. This will only
402- be called when using a reconnection policy other than
404+ Add a callback for handling client reconnection events.
405+
406+ This will only be called when using a reconnection policy other than
403407 `ReconnectPolicy.NONE` and if the session has been started with
404408 `Live.start`.
405409
@@ -614,8 +618,9 @@ def block_for_close(
614618 timeout : float | None = None ,
615619 ) -> None :
616620 """
617- Block until the session closes or a timeout is reached. A session will
618- close after the remote gateway disconnects, or after `Live.stop` or
621+ Block until the session closes or a timeout is reached.
622+
623+ A session will close after the remote gateway disconnects, or after `Live.stop` or
619624 `Live.terminate` are called.
620625
621626 If a `timeout` is specified, `Live.terminate` will be called when the
@@ -661,8 +666,9 @@ async def wait_for_close(
661666 timeout : float | None = None ,
662667 ) -> None :
663668 """
664- Coroutine to wait until the session closes or a timeout is reached. A
665- session will close when the remote gateway disconnects, or after
669+ Coroutine to wait until the session closes or a timeout is reached.
670+
671+ A session will close when the remote gateway disconnects, or after
666672 `Live.stop` or `Live.terminate` are called.
667673
668674 If a `timeout` is specified, `Live.terminate` will be called when the
@@ -718,8 +724,9 @@ def _map_symbol(self, record: DBNRecord) -> None:
718724
719725class LiveIterator :
720726 """
721- Iterator class for the `Live` client. Automatically starts the client when
722- created and will stop it when destroyed. This provides context-manager-like
727+ Iterator class for the `Live` client.
728+
729+ Automatically starts the client when created and will stop it when destroyed. This provides context-manager-like
723730 behavior to for loops.
724731
725732 Parameters
0 commit comments