Skip to content

Commit 34babf1

Browse files
authored
Merge branch 'main' into fix_mem_leak
2 parents c2e9596 + fb1c3a9 commit 34babf1

File tree

15 files changed

+299
-36
lines changed

15 files changed

+299
-36
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 Google LLC
1+
# Copyright 2025 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:2ed982f884312e4883e01b5ab8af8b6935f0216a5a2d82928d273081fc3be562
17-
# created: 2024-11-12T12:09:45.821174897Z
16+
digest: sha256:04c35dc5f49f0f503a306397d6d043685f8d2bb822ab515818c4208d7fb2db3a
17+
# created: 2025-01-16T15:24:11.364245182Z

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.9"
15+
python-version: "3.10"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/unittest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ on:
88
jobs:
99
run-unittests:
1010
name: unit${{ matrix.option }}-${{ matrix.python }}
11-
runs-on: ubuntu-latest
11+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
12+
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
13+
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
14+
runs-on: ubuntu-22.04
1215
strategy:
1316
matrix:
1417
option: ["", "_grpc_gcp", "_wo_grpc", "_w_prerelease_deps", "_w_async_rest_extra"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
nox
2+
gcp-docuploader

.kokoro/docker/docs/requirements.txt

Lines changed: 265 additions & 10 deletions
Large diffs are not rendered by default.

.kokoro/publish-docs.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export PYTHONUNBUFFERED=1
2020

2121
export PATH="${HOME}/.local/bin:${PATH}"
2222

23-
# Install nox
24-
python3.10 -m pip install --require-hashes -r .kokoro/requirements.txt
25-
python3.10 -m nox --version
26-
2723
# build docs
2824
nox -s docs
2925

google/api_core/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,14 +517,14 @@ def format_http_response_error(
517517
errors = payload.get("error", {}).get("errors", ())
518518
# In JSON, details are already formatted in developer-friendly way.
519519
details = payload.get("error", {}).get("details", ())
520-
error_info = list(
520+
error_info_list = list(
521521
filter(
522522
lambda detail: detail.get("@type", "")
523523
== "type.googleapis.com/google.rpc.ErrorInfo",
524524
details,
525525
)
526526
)
527-
error_info = error_info[0] if error_info else None
527+
error_info = error_info_list[0] if error_info_list else None
528528
message = _format_rest_error_message(error_message, method, url)
529529

530530
exception = from_http_status(

google/api_core/grpc_helpers_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ class _WrappedStreamStreamCall(
152152

153153

154154
# public type alias denoting the return type of async streaming gapic calls
155-
GrpcAsyncStream = _WrappedStreamResponseMixin[P]
155+
GrpcAsyncStream = _WrappedStreamResponseMixin
156156
# public type alias denoting the return type of unary gapic calls
157-
AwaitableGrpcCall = _WrappedUnaryResponseMixin[P]
157+
AwaitableGrpcCall = _WrappedUnaryResponseMixin
158158

159159

160160
def _wrap_unary_errors(callable_):

google/api_core/retry/retry_unary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_if_exists():
8383

8484

8585
def retry_target(
86-
target: Callable[_P, _R],
86+
target: Callable[[], _R],
8787
predicate: Callable[[Exception], bool],
8888
sleep_generator: Iterable[float],
8989
timeout: float | None = None,

google/api_core/retry/retry_unary_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ async def check_if_exists():
9494

9595

9696
async def retry_target(
97-
target: Callable[_P, Awaitable[_R]],
97+
target: Callable[[], Awaitable[_R]],
9898
predicate: Callable[[Exception], bool],
9999
sleep_generator: Iterable[float],
100100
timeout: float | None = None,

0 commit comments

Comments
 (0)