-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Failed to cast []
to FixedSizeList(1, Null)
#9158
Comments
I wonder if that's meant to work. The following works:
However, if you wanted a zero-sized list then should it be be
However that throws the following error
|
Panic'ing is definitely not good |
I'll see what I can do |
take |
I've done some digging but did not find an easy fix, only few options listed below. Happy to follow up but need a decision on which fix to attempt. The following works
The possible fix options are:
Lastly, this error happens when displaying the result but not when applying some other functions to it, e.g. this following works but its the only function I tested it with:
|
I prefer 1. I think Fixedsizelist with len 0 is the same as an empty list. I don't think there is any useful case that we need to cast an empty list to Fixedsizelist(0, type). Return |
@Weijun-H was there any specific reason you were trying to achieve this (i.e. |
I unassigned myself from this issue as I don't have much bandwidth at the moment so maybe someone else is willing to implement the changes. If nobody does then I'll come back to this in 2-3 weeks. |
Looks like this is still open, happy to resume if noone else is working on it |
Describe the bug
To Reproduce
No response
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: