Skip to content

Commit 61d9671

Browse files
verulttanujkhattar
andauthored
Fix stream_manager_test type warnings (#6299)
Co-authored-by: Tanuj Khattar <[email protected]>
1 parent acbc624 commit 61d9671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cirq-google/cirq_google/engine/stream_manager_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ class FakeQuantumRunStream:
7070

7171
_REQUEST_STOPPED = 'REQUEST_STOPPED'
7272

73-
def __init__(self):
73+
def __init__(self) -> None:
7474
self.all_stream_requests: List[quantum.QuantumRunStreamRequest] = []
7575
self.all_cancel_requests: List[quantum.CancelQuantumJobRequest] = []
7676
self._executor = AsyncioExecutor.instance()
7777
self._request_buffer = duet.AsyncCollector[quantum.QuantumRunStreamRequest]()
78-
self._request_iterator_stopped = duet.AwaitableFuture()
78+
self._request_iterator_stopped: duet.AwaitableFuture[None] = duet.AwaitableFuture()
7979
# asyncio.Queue needs to be initialized inside the asyncio thread because all callers need
8080
# to use the same event loop.
8181
self._responses_and_exceptions_future: duet.AwaitableFuture[

0 commit comments

Comments
 (0)