1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-07 01:52:03 +02:00

Removed CustomValue portion of CustomValue type name strings. ()

# 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
4 changed files with 4 additions and 4 deletions
crates/nu_plugin_polars/src/dataframe/values
nu_dataframe
nu_lazyframe
nu_lazygroupby
nu_when

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

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

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

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