| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This pull request implements PEP 0810 explicit lazy imports in google/api_core/operations_v1/__init__.py to support deferred imports in Python 3.15+. It also conditionally includes async REST modules based on the presence of google.auth.aio.transport.sessions. The reviewer pointed out that calling importlib.util.find_spec on a deep submodule path can raise a ModuleNotFoundError if parent packages are missing, and suggested wrapping the call in a try-except block to prevent import-time failures.
Sorry, something went wrong.
…_.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…_.py Co-authored-by: Anthonios Partheniou <partheniou@google.com>
…_.py Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
🤖 I have created a release *beep* *boop* --- <details><summary>google-api-core: 2.32.0</summary> ## [2.32.0](google-api-core-v2.31.0...google-api-core-v2.32.0) (2026-07-16) ### Features * implement PEP 0810 lazy loading in operations_v1 ([#17724](#17724)) ([22c5304](22c5304)) ### Bug Fixes * **api_core:** clarify misleading http 404 unimplemented error message ([#17681](#17681)) ([00b9040](00b9040)) </details> <details><summary>google-apps-chat: 0.10.3</summary> ## [0.10.3](google-apps-chat-v0.10.2...google-apps-chat-v0.10.3) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-batch: 0.22.1</summary> ## [0.22.1](google-cloud-batch-v0.22.0...google-cloud-batch-v0.22.1) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-bigtable: 2.41.0</summary> ## [2.41.0](google-cloud-bigtable-v2.40.0...google-cloud-bigtable-v2.41.0) (2026-07-16) ### Features * **bigtable:** support materialized views in the data client ([#17676](#17676)) ([2c3c213](2c3c213)) </details> <details><summary>google-cloud-compute: 1.50.0</summary> ## [1.50.0](google-cloud-compute-v1.49.0...google-cloud-compute-v1.50.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-compute-v1beta: 0.12.1</summary> ## [0.12.1](google-cloud-compute-v1beta-v0.12.0...google-cloud-compute-v1beta-v0.12.1) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-dialogflow: 2.51.0</summary> ## [2.51.0](google-cloud-dialogflow-v2.50.0...google-cloud-dialogflow-v2.51.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-discoveryengine: 0.20.2</summary> ## [0.20.2](google-cloud-discoveryengine-v0.20.1...google-cloud-discoveryengine-v0.20.2) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-kms: 3.16.0</summary> ## [3.16.0](google-cloud-kms-v3.15.0...google-cloud-kms-v3.16.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-memorystore: 0.5.3</summary> ## [0.5.3](google-cloud-memorystore-v0.5.2...google-cloud-memorystore-v0.5.3) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-secret-manager: 2.30.0</summary> ## [2.30.0](google-cloud-secret-manager-v2.29.0...google-cloud-secret-manager-v2.30.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-cloud-securitycenter: 1.46.0</summary> ## [1.46.0](google-cloud-securitycenter-v1.45.0...google-cloud-securitycenter-v1.46.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-shopping-merchant-inventories: 1.6.0</summary> ## [1.6.0](google-shopping-merchant-inventories-v1.5.0...google-shopping-merchant-inventories-v1.6.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> <details><summary>google-shopping-merchant-products: 1.8.0</summary> ## [1.8.0](google-shopping-merchant-products-v1.7.0...google-shopping-merchant-products-v1.8.0) (2026-07-16) ### Features * update googleapis and regenerate ([#17725](#17725)) ([35e16da](35e16da)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…core This PR implements PEP 0810 explicit lazy imports in google-cloud-core. On Python 3.15+, this defers loading of heavy inner modules and third-party dependencies (grpcio, cryptography, requests, and protobuf descriptor pools) to reduce serverless cold starts and memory footprints. On Python 3.14 and below, this falls back safely to eager execution with zero backwards-compatibility risk. ### Related Links - GAPIC Implementation PR: #17591 - google-api-core gapic_v1 PR: #17673 - google-api-core operations_v1 PR: #17724 - google-auth transport PR: #17679
…core This PR implements PEP 0810 explicit lazy imports in google-cloud-core. On Python 3.15+, this defers loading of heavy inner modules and third-party dependencies (grpcio, cryptography, requests, and protobuf descriptor pools) to reduce serverless cold starts and memory footprints. On Python 3.14 and below, this falls back safely to eager execution with zero backwards-compatibility risk. ### Related Links - GAPIC Implementation PR: #17591 - google-api-core gapic_v1 PR: #17673 - google-api-core operations_v1 PR: #17724 - google-auth transport PR: #17679
…core This PR implements PEP 0810 explicit lazy imports in google-cloud-core. On Python 3.15+, this defers loading of heavy inner modules and third-party dependencies (grpcio, cryptography, requests, and protobuf descriptor pools) to reduce serverless cold starts and memory footprints. On Python 3.14 and below, this falls back safely to eager execution with zero backwards-compatibility risk. ### Related Links - GAPIC Implementation PR: #17591 - google-api-core gapic_v1 PR: #17673 - google-api-core operations_v1 PR: #17724 - google-auth transport PR: #17679
…core This PR implements PEP 0810 explicit lazy imports in google-cloud-core. On Python 3.15+, this defers loading of heavy inner modules and third-party dependencies (grpcio, cryptography, requests, and protobuf descriptor pools) to reduce serverless cold starts and memory footprints. On Python 3.14 and below, this falls back safely to eager execution with zero backwards-compatibility risk. ### Related Links - GAPIC Implementation PR: #17591 - google-api-core gapic_v1 PR: #17673 - google-api-core operations_v1 PR: #17724 - google-auth transport PR: #17679
…core This PR implements PEP 0810 explicit lazy imports in google-cloud-core. On Python 3.15+, this defers loading of heavy inner modules and third-party dependencies (grpcio, cryptography, requests, and protobuf descriptor pools) to reduce serverless cold starts and memory footprints. On Python 3.14 and below, this falls back safely to eager execution with zero backwards-compatibility risk. ### Related Links - GAPIC Implementation PR: #17591 - google-api-core gapic_v1 PR: #17673 - google-api-core operations_v1 PR: #17724 - google-auth transport PR: #17679
| Back | FazBrowse Home | New Git URL |
This PR implements PEP 0810 explicit lazy imports in google-api-core's operations_v1 package.
On Python 3.15+, this defers loading of long-running operations clients and transports to avoid eagerly importing heavy dependencies like grpcio and cryptography during import time. This falls back safely to eager execution on Python 3.14 and below with zero backwards-compatibility risk.
Related Links