Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

fix: Add async context manager return types #440

Merged
merged 2 commits into from
Jul 4, 2023
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 @@ -1019,7 +1019,7 @@ async def sample_annotate_text():
# Done; return the response.
return response

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

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

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

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-language",
"version": "2.10.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-language",
"version": "2.10.0"
"version": "0.1.0"
},
"snippets": [
{
Expand Down