mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
Narrow signature of math ceil
/floor
(#9836)
# Description More narrow attempt than #9740 This doesn't cause issues with the current `test_examples` infrastructure. But allows the output of those clearly integer producing commands to be used with functions declaring `list<int>` or `int` # User-Facing Changes see above # Tests + Formatting None
This commit is contained in:
parent
8403fff345
commit
28b99bfaf7
@ -16,7 +16,7 @@ impl Command for SubCommand {
|
||||
(Type::Number, Type::Int),
|
||||
(
|
||||
Type::List(Box::new(Type::Number)),
|
||||
Type::List(Box::new(Type::Number)),
|
||||
Type::List(Box::new(Type::Int)),
|
||||
),
|
||||
])
|
||||
.allow_variants_without_examples(true)
|
||||
|
@ -16,7 +16,7 @@ impl Command for SubCommand {
|
||||
(Type::Number, Type::Int),
|
||||
(
|
||||
Type::List(Box::new(Type::Number)),
|
||||
Type::List(Box::new(Type::Number)),
|
||||
Type::List(Box::new(Type::Int)),
|
||||
),
|
||||
])
|
||||
.allow_variants_without_examples(true)
|
||||
|
Loading…
Reference in New Issue
Block a user