-
Notifications
You must be signed in to change notification settings - Fork 89
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
fix: support UnknownLength
in ak.types.ArrayType
#2031
Conversation
ak.types.ArrayType
UnknownLength
in ak.types.ArrayType
Codecov Report
Additional details and impacted files
|
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.
Earlier today, @ioanaif said she was planning on doing this one, but it wasn't assigned at the time that you started it, and it is a pretty small fix.
Fortunately, there are many more issues to fix. :)
if not ( | ||
(ak._util.is_integer(length) and length >= 0) | ||
or length is ak._typetracer.UnknownLength | ||
): | ||
raise ak._errors.wrap_error( | ||
ValueError( | ||
"{} 'length' must be of a positive integer, not {}".format( | ||
"{} 'length' must be a non-negative integer or unknown length, not {}".format( |
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.
Good catch!
I've been putting a little time between approval and merging by collecting these into a browser window, reviewing them one after another, and then going back to the beginning to merge them. Now I'm back around to the end of the list, so I'll merge this. |
Ah, sorry @ioanaif! I didn't assign the issue to myself because I noticed that it was fairly small. I'll make a note to be better at always assigning things I'm working on. |
Fixes #1937