|
16 | 16 |
|
17 | 17 | from __future__ import absolute_import, annotations, division |
18 | 18 |
|
19 | | -from collections import abc as collections_abc |
20 | 19 | import copy |
21 | 20 | import datetime |
22 | 21 | import functools |
|
28 | 27 | import os |
29 | 28 | import tempfile |
30 | 29 | import typing |
| 30 | +import uuid |
| 31 | +import warnings |
| 32 | +from collections import abc as collections_abc |
31 | 33 | from typing import ( |
32 | 34 | IO, |
33 | 35 | Any, |
|
41 | 43 | Tuple, |
42 | 44 | Union, |
43 | 45 | ) |
44 | | -import uuid |
45 | | -import warnings |
46 | 46 |
|
47 | | -from google.api_core import page_iterator |
48 | | -from google.api_core import retry as retries |
49 | 47 | import google.api_core.client_options |
50 | 48 | import google.api_core.exceptions as core_exceptions |
51 | | -from google.api_core.iam import Policy |
52 | 49 | import google.cloud._helpers # type: ignore |
53 | | -from google.cloud.client import ( |
54 | | - ClientWithProject, |
55 | | -) # type: ignore # pytype: disable=import-error |
56 | | -from google.resumable_media.requests import MultipartUpload # type: ignore |
57 | | -from google.resumable_media.requests import ResumableUpload |
58 | 50 | import requests |
59 | | - |
60 | 51 | from google import resumable_media # type: ignore |
| 52 | +from google.api_core import page_iterator |
| 53 | +from google.api_core import retry as retries |
| 54 | +from google.api_core.iam import Policy |
61 | 55 | from google.cloud import exceptions # pytype: disable=import-error |
| 56 | +from google.cloud.client import ( |
| 57 | + ClientWithProject, # type: ignore # pytype: disable=import-error |
| 58 | +) |
| 59 | +from google.resumable_media.requests import ( |
| 60 | + MultipartUpload, # type: ignore |
| 61 | + ResumableUpload, |
| 62 | +) |
62 | 63 |
|
63 | 64 | try: |
64 | 65 | from google.cloud.bigquery_storage_v1.services.big_query_read.client import ( |
|
69 | 70 |
|
70 | 71 |
|
71 | 72 | from google.auth.credentials import Credentials |
72 | | - |
73 | 73 | from google.cloud.bigquery import ( |
74 | 74 | _job_helpers, |
75 | 75 | _pandas_helpers, |
76 | 76 | _versions_helpers, |
77 | 77 | enums, |
| 78 | + job, |
78 | 79 | ) |
79 | 80 | from google.cloud.bigquery import exceptions as bq_exceptions |
80 | | -from google.cloud.bigquery import job |
81 | 81 | from google.cloud.bigquery._helpers import ( |
82 | 82 | _DEFAULT_HOST, |
83 | 83 | _DEFAULT_HOST_TEMPLATE, |
|
0 commit comments