Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.52.0 (#109)
Browse files Browse the repository at this point in the history
- [ ] 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] authored Sep 30, 2021
1 parent 4a59107 commit c17e384
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/grafeas/grafeas/grafeas_v1/services/grafeas/pagers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

from grafeas.grafeas_v1.types import grafeas
Expand Down Expand Up @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[grafeas.ListOccurrencesResponse]:
def pages(self) -> Iterator[grafeas.ListOccurrencesResponse]:
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[grafeas.Occurrence]:
def __iter__(self) -> Iterator[grafeas.Occurrence]:
for page in self.pages:
yield from page.occurrences

Expand Down Expand Up @@ -136,14 +136,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[grafeas.ListOccurrencesResponse]:
async def pages(self) -> AsyncIterator[grafeas.ListOccurrencesResponse]:
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[grafeas.Occurrence]:
def __aiter__(self) -> AsyncIterator[grafeas.Occurrence]:
async def async_generator():
async for page in self.pages:
for response in page.occurrences:
Expand Down Expand Up @@ -202,14 +202,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[grafeas.ListNotesResponse]:
def pages(self) -> Iterator[grafeas.ListNotesResponse]:
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[grafeas.Note]:
def __iter__(self) -> Iterator[grafeas.Note]:
for page in self.pages:
yield from page.notes

Expand Down Expand Up @@ -264,14 +264,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[grafeas.ListNotesResponse]:
async def pages(self) -> AsyncIterator[grafeas.ListNotesResponse]:
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[grafeas.Note]:
def __aiter__(self) -> AsyncIterator[grafeas.Note]:
async def async_generator():
async for page in self.pages:
for response in page.notes:
Expand Down Expand Up @@ -330,14 +330,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[grafeas.ListNoteOccurrencesResponse]:
def pages(self) -> Iterator[grafeas.ListNoteOccurrencesResponse]:
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[grafeas.Occurrence]:
def __iter__(self) -> Iterator[grafeas.Occurrence]:
for page in self.pages:
yield from page.occurrences

Expand Down Expand Up @@ -392,14 +392,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[grafeas.ListNoteOccurrencesResponse]:
async def pages(self) -> AsyncIterator[grafeas.ListNoteOccurrencesResponse]:
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[grafeas.Occurrence]:
def __aiter__(self) -> AsyncIterator[grafeas.Occurrence]:
async def async_generator():
async for page in self.pages:
for response in page.occurrences:
Expand Down

0 comments on commit c17e384

Please sign in to comment.