From f778362e2744f17559026b663d9804e845865831 Mon Sep 17 00:00:00 2001 From: Linchin Date: Fri, 8 Mar 2024 22:31:33 +0000 Subject: [PATCH 1/2] fix: correct type checking --- google/cloud/bigquery/job/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/bigquery/job/query.py b/google/cloud/bigquery/job/query.py index e45a46894..1765f91e7 100644 --- a/google/cloud/bigquery/job/query.py +++ b/google/cloud/bigquery/job/query.py @@ -1411,7 +1411,7 @@ def _reload_query_results( # Our system does not natively handle that and instead expects # either none or a numeric value. If passed a Python object, convert to # None. - if isinstance(self._done_timeout, object): # pragma: NO COVER + if type(self._done_timeout) is object: # pragma: NO COVER self._done_timeout = None if self._done_timeout is not None: # pragma: NO COVER From 081267da455ec5ce76d4f279970cd4a06437f5c5 Mon Sep 17 00:00:00 2001 From: Chalmer Lowe Date: Mon, 11 Mar 2024 12:09:11 -0400 Subject: [PATCH 2/2] Update google/cloud/bigquery/job/query.py --- google/cloud/bigquery/job/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/bigquery/job/query.py b/google/cloud/bigquery/job/query.py index 1765f91e7..83d2751ce 100644 --- a/google/cloud/bigquery/job/query.py +++ b/google/cloud/bigquery/job/query.py @@ -1409,7 +1409,7 @@ def _reload_query_results( # Python_API_core, as part of a major rewrite of the deadline, timeout, # retry process sets the timeout value as a Python object(). # Our system does not natively handle that and instead expects - # either none or a numeric value. If passed a Python object, convert to + # either None or a numeric value. If passed a Python object, convert to # None. if type(self._done_timeout) is object: # pragma: NO COVER self._done_timeout = None