Skip to content

Commit eda0061

Browse files
Add type hinting for datetime.date objects to get_grouped_daily_aggs and get_daily_open_close_agg (#681)
Co-authored-by: justinpolygon <[email protected]>
1 parent 174028a commit eda0061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polygon/rest/aggs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_aggs(
103103
# param
104104
def get_grouped_daily_aggs(
105105
self,
106-
date: str,
106+
date: Union[str, date],
107107
adjusted: Optional[bool] = None,
108108
params: Optional[Dict[str, Any]] = None,
109109
raw: bool = False,
@@ -135,7 +135,7 @@ def get_grouped_daily_aggs(
135135
def get_daily_open_close_agg(
136136
self,
137137
ticker: str,
138-
date: str,
138+
date: Union[str, date],
139139
adjusted: Optional[bool] = None,
140140
params: Optional[Dict[str, Any]] = None,
141141
raw: bool = False,

0 commit comments

Comments
 (0)