Skip to content

Commit a1aa850

Browse files
fix: Add async context manager return types (#421)
* fix: Add async context manager return types chore: Mock return_value should not populate oneof message fields chore: Support snippet generation for services that only support REST transport chore: Update gapic-generator-python to v1.11.0 PiperOrigin-RevId: 545430278 Source-Link: googleapis/googleapis@601b532 Source-Link: googleapis/googleapis-gen@b3f18d0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjNmMThkMGY2NTYwYTg1NTAyMmZkMDU4ODY1ZTc2MjA0NzlkN2FmOSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent e31c2f2 commit a1aa850

File tree

49 files changed

+97
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+97
-169
lines changed

packages/google-cloud-retail/google/cloud/retail_v2/services/catalog_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ async def get_operation(
15781578
# Done; return the response.
15791579
return response
15801580

1581-
async def __aenter__(self):
1581+
async def __aenter__(self) -> "CatalogServiceAsyncClient":
15821582
return self
15831583

15841584
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/completion_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ async def get_operation(
525525
# Done; return the response.
526526
return response
527527

528-
async def __aenter__(self):
528+
async def __aenter__(self) -> "CompletionServiceAsyncClient":
529529
return self
530530

531531
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/control_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ async def get_operation(
903903
# Done; return the response.
904904
return response
905905

906-
async def __aenter__(self):
906+
async def __aenter__(self) -> "ControlServiceAsyncClient":
907907
return self
908908

909909
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/model_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ async def get_operation(
12461246
# Done; return the response.
12471247
return response
12481248

1249-
async def __aenter__(self):
1249+
async def __aenter__(self) -> "ModelServiceAsyncClient":
12501250
return self
12511251

12521252
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/prediction_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ async def get_operation(
408408
# Done; return the response.
409409
return response
410410

411-
async def __aenter__(self):
411+
async def __aenter__(self) -> "PredictionServiceAsyncClient":
412412
return self
413413

414414
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/product_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1984,7 +1984,7 @@ async def get_operation(
19841984
# Done; return the response.
19851985
return response
19861986

1987-
async def __aenter__(self):
1987+
async def __aenter__(self) -> "ProductServiceAsyncClient":
19881988
return self
19891989

19901990
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/search_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ async def get_operation(
438438
# Done; return the response.
439439
return response
440440

441-
async def __aenter__(self):
441+
async def __aenter__(self) -> "SearchServiceAsyncClient":
442442
return self
443443

444444
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/serving_config_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ async def get_operation(
11461146
# Done; return the response.
11471147
return response
11481148

1149-
async def __aenter__(self):
1149+
async def __aenter__(self) -> "ServingConfigServiceAsyncClient":
11501150
return self
11511151

11521152
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2/services/user_event_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ async def get_operation(
894894
# Done; return the response.
895895
return response
896896

897-
async def __aenter__(self):
897+
async def __aenter__(self) -> "UserEventServiceAsyncClient":
898898
return self
899899

900900
async def __aexit__(self, exc_type, exc, tb):

packages/google-cloud-retail/google/cloud/retail_v2alpha/services/catalog_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ async def get_operation(
16721672
# Done; return the response.
16731673
return response
16741674

1675-
async def __aenter__(self):
1675+
async def __aenter__(self) -> "CatalogServiceAsyncClient":
16761676
return self
16771677

16781678
async def __aexit__(self, exc_type, exc, tb):

0 commit comments

Comments
 (0)