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

fix: Add async context manager return types #433

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 @@ -365,7 +365,7 @@ async def sample_annotate_video():
# Done; return the response.
return response

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

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

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

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

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

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

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

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

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

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

async def __aenter__(self):
async def __aenter__(self) -> "VideoIntelligenceServiceAsyncClient":
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-videointelligence",
"version": "2.11.2"
"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-videointelligence",
"version": "2.11.2"
"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-videointelligence",
"version": "2.11.2"
"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-videointelligence",
"version": "2.11.2"
"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-videointelligence",
"version": "2.11.2"
"version": "0.1.0"
},
"snippets": [
{
Expand Down