Skip to content

Commit

Permalink
update docstring & remove max_time (Qiskit#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Oct 9, 2023
1 parent 999f71c commit a70ce17
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions qiskit_ibm_runtime/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a70ce17

Please sign in to comment.