We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba22504 commit e4be174Copy full SHA for e4be174
qiskit_ibm_runtime/batch.py
@@ -84,7 +84,7 @@ class Batch(Session):
84
85
def __init__(
86
self,
87
- backend: Optional[BackendV2] = None,
+ backend: BackendV2,
88
max_time: Optional[Union[int, str]] = None,
89
*,
90
create_new: Optional[bool] = True,
qiskit_ibm_runtime/session.py
@@ -83,7 +83,7 @@ class Session:
83
release-notes/unreleased/2222.bug.rst
@@ -0,0 +1,2 @@
1
+Removed the incorrect ``Optional`` type hint for the ``backend``
2
+parameter in :class:`~.Session` and :class:`~.Batch`.
0 commit comments