GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — fix: improper types in pagers generation by dpcollins-google · Pull Request #970 · googleapis/gapic-generator-python
This repository was archived by the owner on Aug 25, 2026. It is now read-only.
Conversation
Contributor
Generators are Iterators not Iterables https://docs.python.org/3/library/typing.html#typing.Generator
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsGenerators are Iterators not Iterables https://docs.python.org/3/library/typing.html#typing.Generator
tseaver
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change is correct, if a bit nit-picky (
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
This is not quite correct. Iterables are not required to have In fact, you can see this with <*>Pager itself: it is an Iterable (with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@dpcollins-google could you update the golden files? That should resolve the one failing |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@dpcollins-google I think we are in violent agreement here: At any rate, my question remains: do we have reported errors from |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
It looks like this is causing a problem for Pub/Sub (see log, so I'm inclined to merge it now and re-visit if it causes an issue. @software-dov @atulep Could you also take a look as the generator owners? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
To clarify, the issue this is causing is that PyType detects that its wrong: the pager object itself is NOT an Iterator because its |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
From https://docs.python.org/3/library/typing.html#typing.Generator, generator can have a return type of either Does Pub/Sub fail because a caller of the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Please see my comment above. The Pager itself does not model |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🤖 I have created a release \*beep\* \*boop\* --- ## [0.52.0](https://www.github.com/googleapis/gapic-generator-python/compare/v0.51.2...v0.52.0) (2021-09-29) ### Features * Support alternative http bindings in the gapic schema. ([#993](https://www.github.com/googleapis/gapic-generator-python/issues/993)) ([041a726](https://www.github.com/googleapis/gapic-generator-python/commit/041a726b818cd67812d689c23757f31ec9964d66)) ### Bug Fixes * improper types in pagers generation ([#970](https://www.github.com/googleapis/gapic-generator-python/issues/970)) ([bba3eea](https://www.github.com/googleapis/gapic-generator-python/commit/bba3eea5d45fe57c0395ceef30402ad7880013d7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.