From a70ce171226cb85e2e7cce43842ea8631494c54a Mon Sep 17 00:00:00 2001 From: Kevin Tian Date: Mon, 9 Oct 2023 11:08:55 -0400 Subject: [PATCH] update docstring & remove max_time (#1137) --- qiskit_ibm_runtime/session.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/qiskit_ibm_runtime/session.py b/qiskit_ibm_runtime/session.py index 13f3a2bd9..608df334d 100644 --- a/qiskit_ibm_runtime/session.py +++ b/qiskit_ibm_runtime/session.py @@ -217,10 +217,21 @@ def from_id( session_id: str, service: Optional[QiskitRuntimeService] = None, backend: Optional[Union[str, IBMBackend]] = None, - max_time: Optional[Union[int, str]] = None, ) -> "Session": - """Construct a Session object with a given session_id""" - session = cls(service, backend, max_time) + """Construct a Session object with a given session_id + + Args: + session_id: the id of the session to be created. This can be an already + existing session id. + service: instance of the ``QiskitRuntimeService`` class. + backend: instance of :class:`qiskit_ibm_runtime.IBMBackend` class or + string name of backend. + + Returns: + A new Session with the given ``session_id`` + + """ + session = cls(service, backend) session._session_id = session_id return session