Skip to content

Commit

Permalink
Add "deprecated" to docstring (#1970)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Oct 15, 2024
1 parent b9fbc0c commit bd3a42a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/runtime_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def backend(self, timeout: Optional[float] = None) -> Optional[Backend]:
def stream_results(
self, callback: Callable, decoder: Optional[Type[ResultDecoder]] = None
) -> None:
"""Start streaming job results.
"""(DEPRECATED) Start streaming job results.
Args:
callback: Callback function to be invoked for any interim results and final result.
Expand Down Expand Up @@ -398,7 +398,7 @@ def stream_results(

@deprecate_function("interim_results()", "0.25", "", stacklevel=1)
def interim_results(self, decoder: Optional[Type[ResultDecoder]] = None) -> Any:
"""Return the interim results of the job.
"""(DEPRECATED) Return the interim results of the job.
Args:
decoder: A :class:`ResultDecoder` subclass used to decode interim results.
Expand Down
4 changes: 2 additions & 2 deletions qiskit_ibm_runtime/runtime_job_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def backend(self, timeout: Optional[float] = None) -> Optional[Backend]:
def stream_results(
self, callback: Callable, decoder: Optional[Type[ResultDecoder]] = None
) -> None:
"""Start streaming job results.
"""(DEPRECATED) Start streaming job results.
Args:
callback: Callback function to be invoked for any interim results and final result.
Expand Down Expand Up @@ -305,7 +305,7 @@ def stream_results(

@deprecate_function("interim_results()", "0.25", "", stacklevel=1)
def interim_results(self, decoder: Optional[Type[ResultDecoder]] = None) -> Any:
"""Return the interim results of the job.
"""(DEPRECATED) Return the interim results of the job.
Args:
decoder: A :class:`ResultDecoder` subclass used to decode interim results.
Expand Down

0 comments on commit bd3a42a

Please sign in to comment.