Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#259)
- [ ] Regenerate this pull request now.

fix: improper types in pagers generation
PiperOrigin-RevId: 399773015

Source-Link: googleapis/googleapis@410c184

Source-Link: googleapis/googleapis-gen@290e883
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 30, 2021
1 parent 94e8289 commit a0bac07de9f4e89c41d34a47d9e35ec6fd7edac3
Showing 1 changed file with 10 additions and 10 deletions.
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from google.cloud.speech_v1p1beta1.types import cloud_speech_adaptation
@@ -75,14 +75,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloud_speech_adaptation.ListPhraseSetResponse]:
def pages(self) -> Iterator[cloud_speech_adaptation.ListPhraseSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[resource.PhraseSet]:
def __iter__(self) -> Iterator[resource.PhraseSet]:
for page in self.pages:
yield from page.phrase_sets

@@ -139,14 +139,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[cloud_speech_adaptation.ListPhraseSetResponse]:
) -> AsyncIterator[cloud_speech_adaptation.ListPhraseSetResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[resource.PhraseSet]:
def __aiter__(self) -> AsyncIterator[resource.PhraseSet]:
async def async_generator():
async for page in self.pages:
for response in page.phrase_sets:
@@ -205,14 +205,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[cloud_speech_adaptation.ListCustomClassesResponse]:
def pages(self) -> Iterator[cloud_speech_adaptation.ListCustomClassesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = self._method(self._request, metadata=self._metadata)
yield self._response

def __iter__(self) -> Iterable[resource.CustomClass]:
def __iter__(self) -> Iterator[resource.CustomClass]:
for page in self.pages:
yield from page.custom_classes

@@ -271,14 +271,14 @@ def __getattr__(self, name: str) -> Any:
@property
async def pages(
self,
) -> AsyncIterable[cloud_speech_adaptation.ListCustomClassesResponse]:
) -> AsyncIterator[cloud_speech_adaptation.ListCustomClassesResponse]:
yield self._response
while self._response.next_page_token:
self._request.page_token = self._response.next_page_token
self._response = await self._method(self._request, metadata=self._metadata)
yield self._response

def __aiter__(self) -> AsyncIterable[resource.CustomClass]:
def __aiter__(self) -> AsyncIterator[resource.CustomClass]:
async def async_generator():
async for page in self.pages:
for response in page.custom_classes:

0 comments on commit a0bac07

Please sign in to comment.