diff --git a/crates/nu-command/src/math/abs.rs b/crates/nu-command/src/math/abs.rs index 574a6b3bf8..75dae0630e 100644 --- a/crates/nu-command/src/math/abs.rs +++ b/crates/nu-command/src/math/abs.rs @@ -14,10 +14,15 @@ impl Command for SubCommand { Signature::build("math abs") .input_output_types(vec![ (Type::Number, Type::Number), + (Type::Duration, Type::Duration), ( Type::List(Box::new(Type::Number)), Type::List(Box::new(Type::Number)), ), + ( + Type::List(Box::new(Type::Duration)), + Type::List(Box::new(Type::Duration)), + ), ]) .allow_variants_without_examples(true) .category(Category::Math)