Removed CustomValue portion of CustomValue type name strings. (#14054)

# Description

This changes the names returned by CustomValue::name() of the various
custom value structs to just say the name of the thing they represent.
For instance "DataFrameCustomValue" is not just "DataFrame".

# User-Facing Changes
- Places such as or errors where NuDataFrameCustomValue would be seen,
now just shows as NuDataFrame.
This commit is contained in:
Jack Wright 2024-10-11 04:41:24 -07:00 committed by GitHub
parent 44be445b57
commit 2df91e7f92
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ impl CustomValue for NuDataFrameCustomValue {
} }
fn type_name(&self) -> String { fn type_name(&self) -> String {
"NuDataFrameCustomValue".into() "NuDataFrame".into()
} }
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> { fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {

View File

@ -27,7 +27,7 @@ impl CustomValue for NuLazyFrameCustomValue {
} }
fn type_name(&self) -> String { fn type_name(&self) -> String {
"NuLazyFrameCustomValue".into() "NuLazyFrame".into()
} }
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> { fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {

View File

@ -19,7 +19,7 @@ impl CustomValue for NuLazyGroupByCustomValue {
} }
fn type_name(&self) -> String { fn type_name(&self) -> String {
"NuLazyGroupByCustomValue".into() "NuLazyGroupBy".into()
} }
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> { fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {

View File

@ -20,7 +20,7 @@ impl CustomValue for NuWhenCustomValue {
} }
fn type_name(&self) -> String { fn type_name(&self) -> String {
"NuWhenCustomValue".into() "NuWhen".into()
} }
fn to_base_value(&self, span: Span) -> Result<Value, ShellError> { fn to_base_value(&self, span: Span) -> Result<Value, ShellError> {