Signature::vectorizes_over_list
not useful at runtime only relevant to test.
#9734
Labels
type-system
Problems or features related to nushell's type system
Milestone
When defining the input and output types #6796 already added the capability to declare that a command operates on a single scalar of a type AND a whole list/vector of this type. This can be indicated by the
Signature::vectorizes_over_list
method and field. But this only affects the rough testing done for theExample
s. Here this field is checked to see if theExample
s are member of the set of declaredinput_output_types
.The runtime type checker that is much more effective since #9680 does not take this into account at all. Thus several commands that support both scalar as well as list/stream values currently need to be updated in their type signature (see for example #9683)
Either we support the
vectorizes_over_list
field in the type check as well or we remove it and update all necessary signatures manually.The text was updated successfully, but these errors were encountered: