Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions google/api_core/bidi.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ def _is_active(self):
# property is set. So we have to check if self.call is set before
# seeing if it's active. We need to return True if self.call is None.
# See https://github.com/googleapis/python-api-core/issues/560.
if self.call is not None and not self.call.is_active():
return False
else:
return True
return self.call is None or self.call.is_active()

def __iter__(self):
if self._initial_request is not None:
Expand Down