diff --git a/evdspy/EVDSlocal/index_requests/get_series_indexes.py b/evdspy/EVDSlocal/index_requests/get_series_indexes.py index d80673e..2980c42 100644 --- a/evdspy/EVDSlocal/index_requests/get_series_indexes.py +++ b/evdspy/EVDSlocal/index_requests/get_series_indexes.py @@ -125,11 +125,11 @@ class UserRequest: formulas: Union[str, int, tuple[str], tuple[int], None] = None aggregation: Union[str, tuple[str], None] = None cache: bool = False - proxy: str = None - proxies: dict = None + proxy: Optional[str] = None + proxies: Optional[dict[Any, Any]] = None cache_name: str = "" - def get_proxies(self): + def get_proxies(self) -> Optional[dict[Any, Any]]: if self.proxies is None: if self.proxy is None: proxies = None @@ -139,7 +139,7 @@ def get_proxies(self): proxies = self.proxies return proxies - def get_proxies_helper(self) -> Union[dict, None]: + def get_proxies_helper(self) -> Optional[dict[Any, Any]]: if self.proxy is None: return None @@ -159,7 +159,7 @@ def __post_init__(self): self.aggregation = self.correct_type_to_tuple(self.aggregation) self.check() - def correct_type_to_tuple(self, value: any) -> Union[tuple, None]: + def correct_type_to_tuple(self, value: any) -> Optional[tuple]: if value is None: return None