Remove ListStream type (#14425)

# Description
List values and list streams have the same type (`list<>`). Rather,
streaming is a separate property of the pipeline/command output. This PR
removes the unnecessary `ListStream` type.

# User-Facing Changes
Should be none, except `random dice` now has a more specific output
type.
This commit is contained in:
Ian Manske
2024-11-26 17:35:55 -08:00
committed by GitHub
parent 186c08467f
commit 4edce44689
8 changed files with 5 additions and 13 deletions

View File

@ -23,7 +23,7 @@ impl PluginCommand for ForEach {
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_output_type(Type::ListStream, Type::Nothing)
.input_output_type(Type::list(Type::Any), Type::Nothing)
.required(
"closure",
SyntaxShape::Closure(Some(vec![SyntaxShape::Any])),

View File

@ -26,7 +26,7 @@ impl PluginCommand for Generate {
fn signature(&self) -> Signature {
Signature::build(self.name())
.input_output_type(Type::Nothing, Type::ListStream)
.input_output_type(Type::Nothing, Type::list(Type::Any))
.required(
"initial",
SyntaxShape::Any,