Skip to content

Commit 72fa58c

Browse files
Merge branch 'googleapis:main' into main
2 parents 12649ff + 32862f0 commit 72fa58c

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/google-cloud-documentai-toolbox/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"intervaltree>=3.0.0",
6969
"pikepdf>=8.0.0, <11.0.0",
7070
"immutabledict>=2.0.0, <5.0.0",
71-
"Pillow>=10.0.0, <12.0.0",
71+
"Pillow>=10.0.0, <13.0.0",
7272
"Jinja2>=3.1.0, <4.0.0",
7373
),
7474
python_requires=">=3.10",

packages/google-cloud-logging/google/cloud/logging_v2/handlers/structured_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(
7777
Args:
7878
labels (Optional[dict]): Additional labels to attach to logs.
7979
stream (Optional[IO]): Stream to be used by the handler.
80-
project (Optional[str]): Project Id associated with the logs.
80+
project_id (Optional[str]): Project Id associated with the logs.
8181
json_encoder_cls (Optional[Type[JSONEncoder]]): Custom JSON encoder. Defaults to json.JSONEncoder
8282
"""
8383
super(StructuredLogHandler, self).__init__(stream=stream)

packages/google-cloud-spanner/samples/samples/async_snippets.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def async_create_client(instance_id, database_id):
2626
"""Instantiates an asynchronous Spanner client."""
2727
spanner_client = AsyncClient()
2828
instance = spanner_client.instance(instance_id)
29-
database = instance.database(database_id)
29+
database = await instance.database(database_id)
3030

3131
print("Async Spanner client instantiated successfully.")
3232
return database
@@ -40,7 +40,7 @@ async def async_query_data(instance_id, database_id):
4040
"""Queries sample data from the database using asynchronous SQL."""
4141
spanner_client = AsyncClient()
4242
instance = spanner_client.instance(instance_id)
43-
database = instance.database(database_id)
43+
database = await instance.database(database_id)
4444

4545
async with database.snapshot() as snapshot:
4646
results = await snapshot.execute_sql(
@@ -59,7 +59,7 @@ async def async_insert_data(instance_id, database_id):
5959
"""Inserts sample data into the database using DML asynchronously."""
6060
spanner_client = AsyncClient()
6161
instance = spanner_client.instance(instance_id)
62-
database = instance.database(database_id)
62+
database = await instance.database(database_id)
6363

6464
async def insert_singers(transaction):
6565
dml = (
@@ -81,7 +81,7 @@ async def async_read_write_transaction(instance_id, database_id):
8181
"""Performs an asynchronous read-write transaction."""
8282
spanner_client = AsyncClient()
8383
instance = spanner_client.instance(instance_id)
84-
database = instance.database(database_id)
84+
database = await instance.database(database_id)
8585

8686
async def update_singer_lastname(transaction):
8787
# Retrieve current name
@@ -110,7 +110,7 @@ async def async_read_only_transaction(instance_id, database_id):
110110
"""Performs an asynchronous read-only transaction."""
111111
spanner_client = AsyncClient()
112112
instance = spanner_client.instance(instance_id)
113-
database = instance.database(database_id)
113+
database = await instance.database(database_id)
114114

115115
async with database.snapshot() as snapshot:
116116
# Execute a read using standard KeySet

0 commit comments

Comments
 (0)