mirror of
https://github.com/nushell/nushell
synced 2025-01-14 22:24:54 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ impl Command for SubCommand {
|
||||||
(Type::Number, Type::Int),
|
(Type::Number, Type::Int),
|
||||||
(
|
(
|
||||||
Type::List(Box::new(Type::Number)),
|
Type::List(Box::new(Type::Number)),
|
||||||
Type::List(Box::new(Type::Number)),
|
Type::List(Box::new(Type::Int)),
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
.allow_variants_without_examples(true)
|
.allow_variants_without_examples(true)
|
||||||
|
|
|
@ -16,7 +16,7 @@ impl Command for SubCommand {
|
||||||
(Type::Number, Type::Int),
|
(Type::Number, Type::Int),
|
||||||
(
|
(
|
||||||
Type::List(Box::new(Type::Number)),
|
Type::List(Box::new(Type::Number)),
|
||||||
Type::List(Box::new(Type::Number)),
|
Type::List(Box::new(Type::Int)),
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
.allow_variants_without_examples(true)
|
.allow_variants_without_examples(true)
|
||||||
|
|
Loading…
Reference in a new issue