mirror of
https://github.com/nushell/nushell
synced 2024-12-26 13:03:07 +00:00
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:
parent
b6dafa6e67
commit
6ac3351fd1
1 changed files with 8 additions and 0 deletions
|
@ -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::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![])),
|
||||
])
|
||||
.allow_variants_without_examples(true)
|
||||
|
|
Loading…
Reference in a new issue