File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 66)
77from typing import (
88 TYPE_CHECKING ,
9- Any ,
109)
1110import warnings
1211
@@ -172,7 +171,7 @@ def __init__(
172171 start_date = None ,
173172 end_date = None ,
174173 days_of_week : tuple | None = None ,
175- exclude_dates : list [Any ] | None = None ,
174+ exclude_dates : list [Timestamp ] | None = None ,
176175 ) -> None :
177176 """
178177 Parameters
@@ -264,11 +263,10 @@ class from pandas.tseries.offsets, default None
264263 self .observance = observance
265264 assert days_of_week is None or type (days_of_week ) == tuple
266265 self .days_of_week = days_of_week
267- self .exclude_dates = (
268- [Timestamp (ex ) for ex in exclude_dates ]
269- if exclude_dates is not None
270- else exclude_dates
266+ assert exclude_dates is None or all (
267+ type (ex ) == Timestamp for ex in exclude_dates
271268 )
269+ self .exclude_dates = exclude_dates
272270
273271 def __repr__ (self ) -> str :
274272 info = ""
You can’t perform that action at this time.
0 commit comments