Skip to content

Commit

Permalink
fix: Add async context manager return types (#610)
Browse files Browse the repository at this point in the history
* 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

* 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

* 🦉 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 4, 2023
1 parent f007eb2 commit e7069d1
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ async def sample_split_read_stream():
# Done; return the response.
return response

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

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

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

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

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

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

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

async def __aexit__(self, exc_type, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,6 @@ def test_create_read_session(request_type, transport: str = "grpc"):
estimated_total_physical_file_size=3608,
estimated_row_count=2047,
trace_id="trace_id_value",
avro_schema=avro.AvroSchema(schema="schema_value"),
)
response = client.create_read_session(request)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,6 @@ def test_create_read_session(request_type, transport: str = "grpc"):
name="name_value",
data_format=stream.DataFormat.AVRO,
table="table_value",
avro_schema=avro.AvroSchema(schema="schema_value"),
)
response = client.create_read_session(request)

Expand Down

0 comments on commit e7069d1

Please sign in to comment.