We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58516ef commit 45b8a6dCopy full SHA for 45b8a6d
google/api_core/rest_streaming_async.py
@@ -49,7 +49,11 @@ def __init__(
49
):
50
self._response = response
51
self._chunk_size = 1024
52
- self._response_itr = self._response.content().__aiter__()
+ # TODO(https://github.com/googleapis/python-api-core/issues/703): mypy does not recognize the abstract content
53
+ # method as an async generator as it looks for the `yield` keyword in the implementation.
54
+ # Given that the abstract method is not implemented, mypy fails to recognize it as an async generator.
55
+ # mypy warnings are silenced until the linked issue is resolved.
56
+ self._response_itr = self._response.content(self._chunk_size).__aiter__() # type: ignore
57
super(AsyncResponseIterator, self).__init__(
58
response_message_cls=response_message_cls
59
)
0 commit comments