Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ class {{ service.async_client_name }}:
return response
{% endif %}

async def __aenter__(self):
async def __aenter__(self) -> "{{ service.async_client_name }}":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ async def sample_analyze_iam_policy_longrunning():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "AssetServiceAsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ async def sample_sign_jwt():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "IAMCredentialsAsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ async def sample_delete_trigger():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "EventarcAsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2648,7 +2648,7 @@ async def sample_update_cmek_settings():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "ConfigServiceV2AsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ def request_generator():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "LoggingServiceV2AsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ async def sample_delete_log_metric():
metadata=metadata,
)

async def __aenter__(self):
async def __aenter__(self) -> "MetricsServiceV2AsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ async def sample_delete_instance():
# Done; return the response.
return response

async def __aenter__(self):
async def __aenter__(self) -> "CloudRedisAsyncClient":
return self

async def __aexit__(self, exc_type, exc, tb):
Expand Down