core: update `shape` list literal error message
This commit is contained in:
parent
ee5389f91b
commit
621ed6382c
|
@ -917,7 +917,7 @@ impl<'a> Inferencer<'a> {
|
|||
// rather than writing a List literal. We need to report an error.
|
||||
return Err(HashSet::from([
|
||||
format!(
|
||||
"Expected List (must be a literal)/Tuple/int32 for argument {arg_num} of {id} at {shape_location}. \
|
||||
"Expected List literal/Tuple/int32 for argument {arg_num} of {id} at {shape_location}. \
|
||||
There, you are passing a value of type List as the argument. \
|
||||
However, this argument is special - you must only supply this argument with a List literal. \
|
||||
On the other hand, you may instead pass in a tuple, and there would be no such restriction.",
|
||||
|
|
Loading…
Reference in New Issue