Skip to content

Commit 37682b7

Browse files
fix: Add async context manager return types (#11446)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 9aa301a commit 37682b7

File tree

554 files changed

+54323
-382
lines changed

Some content is hidden

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

554 files changed

+54323
-382
lines changed

packages/google-cloud-discoveryengine/google/cloud/discoveryengine/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.9.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.9.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/completion_service/async_client.py

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

412-
async def __aenter__(self):
412+
async def __aenter__(self) -> "CompletionServiceAsyncClient":
413413
return self
414414

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/document_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ async def get_operation(
11381138
# Done; return the response.
11391139
return response
11401140

1141-
async def __aenter__(self):
1141+
async def __aenter__(self) -> "DocumentServiceAsyncClient":
11421142
return self
11431143

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/schema_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ async def get_operation(
929929
# Done; return the response.
930930
return response
931931

932-
async def __aenter__(self):
932+
async def __aenter__(self) -> "SchemaServiceAsyncClient":
933933
return self
934934

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/search_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ async def get_operation(
427427
# Done; return the response.
428428
return response
429429

430-
async def __aenter__(self):
430+
async def __aenter__(self) -> "SearchServiceAsyncClient":
431431
return self
432432

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1/services/user_event_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ async def get_operation(
668668
# Done; return the response.
669669
return response
670670

671-
async def __aenter__(self):
671+
async def __aenter__(self) -> "UserEventServiceAsyncClient":
672672
return self
673673

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.9.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/services/completion_service/async_client.py

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

412-
async def __aenter__(self):
412+
async def __aenter__(self) -> "CompletionServiceAsyncClient":
413413
return self
414414

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

packages/google-cloud-discoveryengine/google/cloud/discoveryengine_v1beta/services/document_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ async def get_operation(
11411141
# Done; return the response.
11421142
return response
11431143

1144-
async def __aenter__(self):
1144+
async def __aenter__(self) -> "DocumentServiceAsyncClient":
11451145
return self
11461146

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

0 commit comments

Comments
 (0)