mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 16:33:37 +01: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
@ -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 New Issue
Block a user