Skip to content

Commit

Permalink
Update depecration msg with correct version (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Jun 12, 2024
1 parent cb1c506 commit 7a5d224
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qiskit_ibm_runtime/base_primitive.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def session(self) -> Optional[Session]:
Returns:
Session used by this primitive, or ``None`` if session is not used.
"""
deprecate_function("session", "0.23.0", "Please use the 'mode' property instead.")
deprecate_function("session", "0.24.0", "Please use the 'mode' property instead.")
return self._mode

@property
Expand Down
6 changes: 3 additions & 3 deletions qiskit_ibm_runtime/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@ def __init__(
if backend:
deprecate_arguments(
"backend",
"0.23.0",
"0.24.0",
"Please use the 'mode' parameter instead.",
)
if session:
deprecate_arguments(
"session",
"0.23.0",
"0.24.0",
"Please use the 'mode' parameter instead.",
)
if isinstance(mode, str) or isinstance(backend, str):
issue_deprecation_msg(
"The backend name as execution mode input has been deprecated.",
"0.23.0",
"0.24.0",
"A backend object should be provided instead. Get the backend directly from"
" the service using `QiskitRuntimeService().backend('ibm_backend')`",
3,
Expand Down
6 changes: 3 additions & 3 deletions qiskit_ibm_runtime/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ def __init__(
if backend:
deprecate_arguments(
"backend",
"0.23.0",
"0.24.0",
"Please use the 'mode' parameter instead.",
)
if session:
deprecate_arguments(
"session",
"0.23.0",
"0.24.0",
"Please use the 'mode' parameter instead.",
)
if isinstance(mode, str) or isinstance(backend, str):
issue_deprecation_msg(
"The backend name as execution mode input has been deprecated.",
"0.23.0",
"0.24.0",
"A backend object should be provided instead. Get the backend directly from"
" the service using `QiskitRuntimeService().backend('ibm_backend')`",
3,
Expand Down

0 comments on commit 7a5d224

Please sign in to comment.