-
Notifications
You must be signed in to change notification settings - Fork 800
iterator_to_array() and iterator_count() now accepts arrays #1938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically the stub uses iterable
, but I guess it makes sense to use the explicit union here, especially when combined with the internal change.
I've generated the change via gen_stubs, so maybe that's why. But in either case it's equivalent :) |
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
Today I suddenly learned about this feature and was very happy to remove Do you mind if I change |
According to Girgias, the explicit union is how it falls out of the automated generator consuming the stubs. Thus a manual change would be undesirable. This would need to be handled in the generator. |
|
No description provided.