Skip to content

Commit 9aa71be

Browse files
fix: Add async context manager return types (#440)
* 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 2fe8dc3 commit 9aa71be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/google-cloud-language/google/cloud/language_v1/services/language_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ async def sample_annotate_text():
10191019
# Done; return the response.
10201020
return response
10211021

1022-
async def __aenter__(self):
1022+
async def __aenter__(self) -> "LanguageServiceAsyncClient":
10231023
return self
10241024

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

packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,7 @@ async def sample_annotate_text():
10201020
# Done; return the response.
10211021
return response
10221022

1023-
async def __aenter__(self):
1023+
async def __aenter__(self) -> "LanguageServiceAsyncClient":
10241024
return self
10251025

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

packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-language",
11-
"version": "2.10.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-language",
11-
"version": "2.10.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)