Skip to content

Commit 86d6f70

Browse files
Update packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/writer.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 1890eee commit 86d6f70

File tree

1 file changed

+1
-1
lines changed
  • packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2

1 file changed

+1
-1
lines changed

packages/google-cloud-bigquery-storage/google/cloud/bigquery_storage_v1beta2/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
_DEFAULT_TIMEOUT = 600
4444

4545

46-
def _wrap_as_exception(maybe_exception) -> Union[BaseException | Exception]:
46+
def _wrap_as_exception(maybe_exception) -> BaseException:
4747
"""Wrap an object as a Python exception, if needed.
4848
Args:
4949
maybe_exception (Any): The object to wrap, usually a gRPC exception class.

0 commit comments

Comments
 (0)