chore: librarian update image pull request: 20260325T185910Z#1532
chore: librarian update image pull request: 20260325T185910Z#1532
Conversation
…prod/images-prod/python-librarian-generator@sha256:667c9c407ace8caf2deba85187536df8a091e7b05c78eea63eb01255fe17a8f3
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request primarily focuses on a routine update to the librarian image, which drives the generation of client libraries. Accompanying this update are several code quality improvements and standardization efforts across the Spanner client libraries. These changes include refining import statements, enhancing client request handling for operational methods, improving documentation build processes, and updating dependency constraints. The overall impact is a more robust, maintainable, and user-friendly client library ecosystem. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates import styles for protobuf and IAM modules across the Google Cloud Spanner client libraries, refactors service account credential handling, and enhances API request processing to support None or dictionary inputs with improved type hints. It also introduces an api_audience parameter to client constructors and updates README.rst formatting. The changes include adding cryptography as a dependency and updating constraint files. Review comments point out several instances of duplicate imports and suggest sorting imports for consistency, which should be addressed.
| import logging | ||
| import os | ||
| import shlex | ||
| import sys | ||
| import logging | ||
| from typing import Any |
There was a problem hiding this comment.
The logging module is imported twice. Please remove the duplicate import. It's also good practice to keep imports sorted alphabetically.
| import logging | |
| import os | |
| import shlex | |
| import sys | |
| import logging | |
| from typing import Any | |
| import logging | |
| import os | |
| import shlex | |
| import sys | |
| from typing import Any |
| from google.longrunning import operations_pb2 # type: ignore | ||
| from google.protobuf import duration_pb2 # type: ignore | ||
| from google.protobuf import empty_pb2 # type: ignore | ||
| from google.protobuf import field_mask_pb2 # type: ignore | ||
| from google.protobuf import timestamp_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| from google.protobuf import duration_pb2 # type: ignore | |
| from google.protobuf import empty_pb2 # type: ignore | |
| from google.protobuf import field_mask_pb2 # type: ignore | |
| from google.protobuf import timestamp_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
| from google.longrunning import operations_pb2 # type: ignore | ||
| from google.protobuf import duration_pb2 # type: ignore | ||
| from google.protobuf import empty_pb2 # type: ignore | ||
| from google.protobuf import field_mask_pb2 # type: ignore | ||
| from google.protobuf import timestamp_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| from google.protobuf import duration_pb2 # type: ignore | |
| from google.protobuf import empty_pb2 # type: ignore | |
| from google.protobuf import field_mask_pb2 # type: ignore | |
| from google.protobuf import timestamp_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
| from google.longrunning import operations_pb2 # type: ignore | ||
| from google.protobuf import field_mask_pb2 # type: ignore | ||
| from google.protobuf import timestamp_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| from google.protobuf import field_mask_pb2 # type: ignore | |
| from google.protobuf import timestamp_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
| from google.longrunning import operations_pb2 # type: ignore | ||
| from google.protobuf import field_mask_pb2 # type: ignore | ||
| from google.protobuf import timestamp_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| from google.protobuf import field_mask_pb2 # type: ignore | |
| from google.protobuf import timestamp_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
| from google.longrunning import operations_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
| from google.longrunning import operations_pb2 # type: ignore | ||
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
There was a problem hiding this comment.
The google.longrunning.operations_pb2 module is imported twice. Please remove the redundant import.
| from google.longrunning import operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore | |
| import google.longrunning.operations_pb2 as operations_pb2 # type: ignore |
feat: update image to us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:667c9c407ace8caf2deba85187536df8a091e7b05c78eea63eb01255fe17a8f3