Skip to content

Commit

Permalink
Update get_series_indexes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SermetPekin authored Apr 15, 2024
1 parent 4c0fa94 commit c2ad247
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions evdspy/EVDSlocal/index_requests/get_series_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c2ad247

Please sign in to comment.