From e699b6b366f3b0f420178638dded034014235b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Riegel?= Date: Thu, 3 Apr 2025 22:59:57 +0200 Subject: [PATCH] signature workaround --- crates/nu-command/src/conversions/into/datetime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/nu-command/src/conversions/into/datetime.rs b/crates/nu-command/src/conversions/into/datetime.rs index b25ce01f88..1e9c616218 100644 --- a/crates/nu-command/src/conversions/into/datetime.rs +++ b/crates/nu-command/src/conversions/into/datetime.rs @@ -77,7 +77,11 @@ impl Command for IntoDatetime { (Type::String, Type::Date), (Type::List(Box::new(Type::String)), Type::List(Box::new(Type::Date))), (Type::table(), Type::table()), + // FIXME: https://github.com/nushell/nushell/issues/15485 + // 'record -> any' was added as a temporary workaround to avoid type inference issues. + (Type::record(), Type::record()), (Type::record(), Type::Date), + (Type::record(), Type::Any), // FIXME Type::Any input added to disable pipeline input type checking, as run-time checks can raise undesirable type errors // which aren't caught by the parser. see https://github.com/nushell/nushell/pull/14922 for more details // only applicable for --list flag