Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2660dbd

Browse files
authored
fix: correct type checking (#1848)
Correct the way we check whether `self._done_timeout` is an instance of `object` class or not.Fixes#1838 🦕
1 parent641a712 commit2660dbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎google/cloud/bigquery/job/query.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,9 +1409,9 @@ def _reload_query_results(
14091409
# Python_API_core, as part of a major rewrite of the deadline, timeout,
14101410
# retry process sets the timeout value as a Python object().
14111411
# Our system does not natively handle that and instead expects
1412-
# eithernone or a numeric value. If passed a Python object, convert to
1412+
# eitherNone or a numeric value. If passed a Python object, convert to
14131413
# None.
1414-
ifisinstance(self._done_timeout,object):# pragma: NO COVER
1414+
iftype(self._done_timeout)isobject:# pragma: NO COVER
14151415
self._done_timeout=None
14161416

14171417
ifself._done_timeoutisnotNone:# pragma: NO COVER

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp