Skip to content

Commit

Permalink
reformat import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
aribray committed Oct 6, 2022
1 parent 3ea255f commit b94c863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions google/cloud/bigquery/_tqdm_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def wait_for_query(
"""
default_total = 1
current_stage = None
start_time = time.time()
start_time = time.perf_counter()

progress_bar = get_progress_bar(
progress_bar_type, "Query is running", default_total, "query"
Expand All @@ -110,7 +110,7 @@ def wait_for_query(
current_stage = query_job.query_plan[i]
progress_bar.total = len(query_job.query_plan)
progress_bar.set_description(
f"Query executing stage {current_stage.name} and status {current_stage.status} : {time.time() - start_time:.2f}s"
f"Query executing stage {current_stage.name} and status {current_stage.status} : {time.perf_counter() - start_time:.2f}s"
)
try:
query_result = query_job.result(
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
geopandas = None

try:
import tqdm
from tqdm import tqdm
from tqdm.std import TqdmDeprecationWarning

except (ImportError, AttributeError): # pragma: NO COVER
Expand Down

0 comments on commit b94c863

Please sign in to comment.