summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py')
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py b/openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py
index 92b3de508d4..f625094c941 100644
--- a/openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py
+++ b/openbb_platform/core/openbb_core/provider/standard_models/share_statistics.py
@@ -20,8 +20,8 @@ class ShareStatisticsQueryParams(QueryParams):
@field_validator("symbol", mode="before", check_fields=False)
@classmethod
- def upper_symbol(cls, v: str) -> str:
- """Convert symbol to uppercase."""
+ def to_upper(cls, v: str) -> str:
+ """Convert field to uppercase."""
return v.upper()
@@ -49,8 +49,8 @@ class ShareStatisticsData(Data):
@field_validator("symbol", mode="before", check_fields=False)
@classmethod
- def upper_symbol(cls, v: Union[str, List[str], Set[str]]):
- """Convert symbol to uppercase."""
+ def to_upper(cls, v: Union[str, List[str], Set[str]]):
+ """Convert field to uppercase."""
if isinstance(v, str):
return v.upper()
return ",".join([symbol.upper() for symbol in list(v)])