From 242d44516fe55141a26024653158ea94fa93e525 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Sep 2021 09:40:26 +0000 Subject: [PATCH] chore: use gapic-generator-python 0.52.0 (#29) - [ ] Regenerate this pull request now. fix: improper types in pagers generation PiperOrigin-RevId: 399773015 Source-Link: https://github.com/googleapis/googleapis/commit/410c184536a22fadaf00aec3cab04102e34d2322 Source-Link: https://github.com/googleapis/googleapis-gen/commit/290e883545e3ac9ff2bd00cd0dacb28f1b8ca945 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjkwZTg4MzU0NWUzYWM5ZmYyYmQwMGNkMGRhY2IyOGYxYjhjYTk0NSJ9 --- .../identity_aware_proxy_o_auth_service/pagers.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/google/cloud/iap_v1/services/identity_aware_proxy_o_auth_service/pagers.py b/google/cloud/iap_v1/services/identity_aware_proxy_o_auth_service/pagers.py index 71c4cfd..f30be53 100644 --- a/google/cloud/iap_v1/services/identity_aware_proxy_o_auth_service/pagers.py +++ b/google/cloud/iap_v1/services/identity_aware_proxy_o_auth_service/pagers.py @@ -15,13 +15,13 @@ # from typing import ( Any, - AsyncIterable, + AsyncIterator, Awaitable, Callable, - Iterable, Sequence, Tuple, Optional, + Iterator, ) from google.cloud.iap_v1.types import service @@ -74,14 +74,14 @@ def __getattr__(self, name: str) -> Any: return getattr(self._response, name) @property - def pages(self) -> Iterable[service.ListIdentityAwareProxyClientsResponse]: + def pages(self) -> Iterator[service.ListIdentityAwareProxyClientsResponse]: 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[service.IdentityAwareProxyClient]: + def __iter__(self) -> Iterator[service.IdentityAwareProxyClient]: for page in self.pages: yield from page.identity_aware_proxy_clients @@ -138,14 +138,14 @@ def __getattr__(self, name: str) -> Any: @property async def pages( self, - ) -> AsyncIterable[service.ListIdentityAwareProxyClientsResponse]: + ) -> AsyncIterator[service.ListIdentityAwareProxyClientsResponse]: 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[service.IdentityAwareProxyClient]: + def __aiter__(self) -> AsyncIterator[service.IdentityAwareProxyClient]: async def async_generator(): async for page in self.pages: for response in page.identity_aware_proxy_clients: