summaryrefslogtreecommitdiffstats
path: root/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py
diff options
context:
space:
mode:
Diffstat (limited to 'openbb_platform/core/openbb_core/provider/standard_models/market_indices.py')
-rw-r--r--openbb_platform/core/openbb_core/provider/standard_models/market_indices.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py b/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py
index eec1026bd73..04d24ad4878 100644
--- a/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py
+++ b/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py
@@ -4,7 +4,7 @@ from datetime import (
date as dateType,
datetime,
)
-from typing import List, Optional, Set, Union
+from typing import Optional
from dateutil import parser
from pydantic import Field, StrictFloat, field_validator
@@ -30,11 +30,9 @@ class MarketIndicesQueryParams(QueryParams):
@field_validator("symbol", mode="before", check_fields=False)
@classmethod
- def upper_symbol(cls, v: Union[str, List[str], Set[str]]):
+ def upper_symbol(cls, v: str) -> str:
"""Convert symbol to uppercase."""
- if isinstance(v, str):
- return v.upper()
- return ",".join([symbol.upper() for symbol in list(v)])
+ return v.upper()
class MarketIndicesData(Data):