Skip to content

Commit

Permalink
Fix stream_manager_test type warnings (#6299)
Browse files Browse the repository at this point in the history
Co-authored-by: Tanuj Khattar <tanujkhattar@google.com>
  • Loading branch information
verult and tanujkhattar committed Sep 25, 2023
1 parent acbc624 commit 61d9671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cirq-google/cirq_google/engine/stream_manager_test.py
Expand Up @@ -70,12 +70,12 @@ class FakeQuantumRunStream:

_REQUEST_STOPPED = 'REQUEST_STOPPED'

def __init__(self):
def __init__(self) -> None:
self.all_stream_requests: List[quantum.QuantumRunStreamRequest] = []
self.all_cancel_requests: List[quantum.CancelQuantumJobRequest] = []
self._executor = AsyncioExecutor.instance()
self._request_buffer = duet.AsyncCollector[quantum.QuantumRunStreamRequest]()
self._request_iterator_stopped = duet.AwaitableFuture()
self._request_iterator_stopped: duet.AwaitableFuture[None] = duet.AwaitableFuture()
# asyncio.Queue needs to be initialized inside the asyncio thread because all callers need
# to use the same event loop.
self._responses_and_exceptions_future: duet.AwaitableFuture[
Expand Down

0 comments on commit 61d9671

Please sign in to comment.