Fix signature for math mode (#9846)

This command will always return a list, either because there are
multiple entries with the same frequency or just one.

It's implementation doesn't care about the composition of types as long
as they are number like, can be heterogeneous, will report
independently.

Work for #9812
This commit is contained in:
Stefan Holderbach 2023-07-28 23:53:36 +02:00 committed by GitHub
parent b6dafa6e67
commit 6ac3351fd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,14 @@ impl Command for SubCommand {
Type::List(Box::new(Type::Number)), Type::List(Box::new(Type::Number)),
Type::List(Box::new(Type::Number)), Type::List(Box::new(Type::Number)),
), ),
(
Type::List(Box::new(Type::Duration)),
Type::List(Box::new(Type::Duration)),
),
(
Type::List(Box::new(Type::Filesize)),
Type::List(Box::new(Type::Filesize)),
),
(Type::Table(vec![]), Type::Record(vec![])), (Type::Table(vec![]), Type::Record(vec![])),
]) ])
.allow_variants_without_examples(true) .allow_variants_without_examples(true)