Fix signature for math sum (#9847)

This also supports filesize and duration.
Filesize is actually used for a non-running example

Work for #9812
This commit is contained in:
Stefan Holderbach 2023-07-28 23:34:47 +02:00 committed by GitHub
parent ff8c3aa356
commit 152a541696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,8 @@ impl Command for SubCommand {
Signature::build("math sum")
.input_output_types(vec![
(Type::List(Box::new(Type::Number)), Type::Number),
(Type::List(Box::new(Type::Duration)), Type::Duration),
(Type::List(Box::new(Type::Filesize)), Type::Filesize),
(Type::Range, Type::Number),
(Type::Table(vec![]), Type::Table(vec![])),
])