Skip to content

Commit

Permalink
lint: import Client directly to avoid mypy issue
Browse files Browse the repository at this point in the history
Refs: python/mypy#10360

Signed-off-by: Mike Fiedler <miketheman@gmail.com>
  • Loading branch information
miketheman committed Sep 26, 2022
1 parent 4699775 commit aad64f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions warehouse/gcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from google.cloud import bigquery, storage
from google.cloud import bigquery
from google.cloud.storage import Client as storage_Client


def gcloud_bigquery_factory(context, request):
Expand All @@ -24,7 +25,7 @@ def gcloud_gcs_factory(context, request):
credentials = request.registry.settings["gcloud.credentials"]
project = request.registry.settings["gcloud.project"]

return storage.Client.from_service_account_json(credentials, project=project)
return storage_Client.from_service_account_json(credentials, project=project)


def includeme(config):
Expand Down

0 comments on commit aad64f9

Please sign in to comment.