Skip to content
Permalink
Browse files
chore: use gapic-generator-python 0.52.0 (#181)
- [ ] 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 committed Sep 30, 2021
1 parent 01b2577 commit 18c93a99a967b6d86e7409f4e26ff56f1c9788de
Showing with 10 additions and 10 deletions.
  1. +10 −10 google/cloud/errorreporting_v1beta1/services/error_stats_service/pagers.py
@@ -15,13 +15,13 @@
#
from typing import (
Any,
AsyncIterable,
AsyncIterator,
Awaitable,
Callable,
Iterable,
Sequence,
Tuple,
Optional,
Iterator,
)

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

@property
def pages(self) -> Iterable[error_stats_service.ListGroupStatsResponse]:
def pages(self) -> Iterator[error_stats_service.ListGroupStatsResponse]:
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[error_stats_service.ErrorGroupStats]:
def __iter__(self) -> Iterator[error_stats_service.ErrorGroupStats]:
for page in self.pages:
yield from page.error_group_stats

@@ -137,14 +137,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[error_stats_service.ListGroupStatsResponse]:
async def pages(self) -> AsyncIterator[error_stats_service.ListGroupStatsResponse]:
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[error_stats_service.ErrorGroupStats]:
def __aiter__(self) -> AsyncIterator[error_stats_service.ErrorGroupStats]:
async def async_generator():
async for page in self.pages:
for response in page.error_group_stats:
@@ -203,14 +203,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
def pages(self) -> Iterable[error_stats_service.ListEventsResponse]:
def pages(self) -> Iterator[error_stats_service.ListEventsResponse]:
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[common.ErrorEvent]:
def __iter__(self) -> Iterator[common.ErrorEvent]:
for page in self.pages:
yield from page.error_events

@@ -265,14 +265,14 @@ def __getattr__(self, name: str) -> Any:
return getattr(self._response, name)

@property
async def pages(self) -> AsyncIterable[error_stats_service.ListEventsResponse]:
async def pages(self) -> AsyncIterator[error_stats_service.ListEventsResponse]:
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[common.ErrorEvent]:
def __aiter__(self) -> AsyncIterator[common.ErrorEvent]:
async def async_generator():
async for page in self.pages:
for response in page.error_events:

0 comments on commit 18c93a9

Please sign in to comment.