Skip to content

Commit eeac3be

Browse files
fix: Add async context manager return types (#362)
* 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 1bb73dd commit eeac3be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/google-analytics-data/google/analytics/data_v1alpha/services/alpha_analytics_data/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async def sample_run_funnel_report():
305305
# Done; return the response.
306306
return response
307307

308-
async def __aenter__(self):
308+
async def __aenter__(self) -> "AlphaAnalyticsDataAsyncClient":
309309
return self
310310

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

packages/google-analytics-data/google/analytics/data_v1beta/services/beta_analytics_data/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ async def sample_check_compatibility():
857857
# Done; return the response.
858858
return response
859859

860-
async def __aenter__(self):
860+
async def __aenter__(self) -> "BetaAnalyticsDataAsyncClient":
861861
return self
862862

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

packages/google-analytics-data/samples/generated_samples/snippet_metadata_google.analytics.data.v1alpha.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-analytics-data",
11-
"version": "0.16.2"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-analytics-data/samples/generated_samples/snippet_metadata_google.analytics.data.v1beta.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-analytics-data",
11-
"version": "0.16.2"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)