@@ -291,7 +291,7 @@ def _from_name(cls, suffix=None):
291291 return cls ()
292292
293293
294- class BusinessDay (CacheableOffset , SingleConstructorOffset ):
294+ class BusinessDay (SingleConstructorOffset ):
295295 """
296296 DateOffset subclass representing possibly n business days
297297 """
@@ -399,7 +399,7 @@ def apply(self, other):
399399 n -= 5 * k
400400 if n == 0 and result .weekday () > 4 :
401401 n -= 1
402-
402+
403403 while n != 0 :
404404 k = n // abs (n )
405405 result = result + timedelta (k )
@@ -548,7 +548,7 @@ def name(self):
548548 return "%s-%s" % (self .rule_code , _int_to_month [self .n ])
549549
550550
551- class MonthEnd (CacheableOffset , MonthOffset ):
551+ class MonthEnd (MonthOffset ):
552552 """DateOffset of one month end"""
553553
554554 def apply (self , other ):
@@ -572,7 +572,7 @@ def onOffset(cls, dt):
572572 _prefix = 'M'
573573
574574
575- class MonthBegin (CacheableOffset , MonthOffset ):
575+ class MonthBegin (MonthOffset ):
576576 """DateOffset of one month at beginning"""
577577
578578 def apply (self , other ):
@@ -591,7 +591,7 @@ def onOffset(cls, dt):
591591 _prefix = 'MS'
592592
593593
594- class BusinessMonthEnd (CacheableOffset , MonthOffset ):
594+ class BusinessMonthEnd (MonthOffset ):
595595 """DateOffset increments between business EOM dates"""
596596
597597 def isAnchored (self ):
@@ -619,7 +619,7 @@ def apply(self, other):
619619 _prefix = 'BM'
620620
621621
622- class BusinessMonthBegin (CacheableOffset , MonthOffset ):
622+ class BusinessMonthBegin (MonthOffset ):
623623 """DateOffset of one business month at beginning"""
624624
625625 def apply (self , other ):
@@ -654,7 +654,7 @@ def onOffset(cls, dt):
654654 _prefix = 'BMS'
655655
656656
657- class Week (CacheableOffset , DateOffset ):
657+ class Week (DateOffset ):
658658 """
659659 Weekly offset
660660
@@ -744,7 +744,7 @@ class WeekDay(object):
744744_weekday_to_int = dict ((v , k ) for k , v in _int_to_weekday .items ())
745745
746746
747- class WeekOfMonth (CacheableOffset , DateOffset ):
747+ class WeekOfMonth (DateOffset ):
748748 """
749749 Describes monthly dates like "the Tuesday of the 2nd week of each month"
750750
@@ -830,7 +830,7 @@ def _from_name(cls, suffix=None):
830830 weekday = _weekday_to_int [suffix [1 :]]
831831 return cls (week = week , weekday = weekday )
832832
833- class LastWeekOfMonth (CacheableOffset , DateOffset ):
833+ class LastWeekOfMonth (DateOffset ):
834834 """
835835 Describes monthly dates in last week of month like "the last Tuesday of each month"
836836
@@ -940,7 +940,7 @@ def rule_code(self):
940940 return '%s-%s' % (self ._prefix , _int_to_month [self .startingMonth ])
941941
942942
943- class BQuarterEnd (CacheableOffset , QuarterOffset ):
943+ class BQuarterEnd (QuarterOffset ):
944944 """DateOffset increments between business Quarter dates
945945 startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, ...
946946 startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, ...
@@ -999,7 +999,7 @@ def onOffset(self, dt):
999999
10001000
10011001# TODO: This is basically the same as BQuarterEnd
1002- class BQuarterBegin (CacheableOffset , QuarterOffset ):
1002+ class BQuarterBegin (QuarterOffset ):
10031003 _outputName = "BusinessQuarterBegin"
10041004 # I suspect this is wrong for *all* of them.
10051005 _default_startingMonth = 3
@@ -1036,7 +1036,7 @@ def apply(self, other):
10361036 return as_timestamp (result )
10371037
10381038
1039- class QuarterEnd (CacheableOffset , QuarterOffset ):
1039+ class QuarterEnd (QuarterOffset ):
10401040 """DateOffset increments between business Quarter dates
10411041 startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, ...
10421042 startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, ...
@@ -1077,7 +1077,7 @@ def onOffset(self, dt):
10771077 return MonthEnd ().onOffset (dt ) and modMonth == 0
10781078
10791079
1080- class QuarterBegin (CacheableOffset , QuarterOffset ):
1080+ class QuarterBegin (QuarterOffset ):
10811081 _outputName = 'QuarterBegin'
10821082 _default_startingMonth = 3
10831083 _from_name_startingMonth = 1
@@ -1129,7 +1129,7 @@ def rule_code(self):
11291129 return '%s-%s' % (self ._prefix , _int_to_month [self .month ])
11301130
11311131
1132- class BYearEnd (CacheableOffset , YearOffset ):
1132+ class BYearEnd (YearOffset ):
11331133 """DateOffset increments between business EOM dates"""
11341134 _outputName = 'BusinessYearEnd'
11351135 _default_month = 12
@@ -1166,7 +1166,7 @@ def apply(self, other):
11661166 return result
11671167
11681168
1169- class BYearBegin (CacheableOffset , YearOffset ):
1169+ class BYearBegin (YearOffset ):
11701170 """DateOffset increments between business year begin dates"""
11711171 _outputName = 'BusinessYearBegin'
11721172 _default_month = 1
@@ -1198,7 +1198,7 @@ def apply(self, other):
11981198 return as_timestamp (datetime (other .year , self .month , first ))
11991199
12001200
1201- class YearEnd (CacheableOffset , YearOffset ):
1201+ class YearEnd (YearOffset ):
12021202 """DateOffset increments between calendar year ends"""
12031203 _default_month = 12
12041204 _prefix = 'A'
@@ -1254,7 +1254,7 @@ def onOffset(self, dt):
12541254 return self .month == dt .month and dt .day == days_in_month
12551255
12561256
1257- class YearBegin (CacheableOffset , YearOffset ):
1257+ class YearBegin (YearOffset ):
12581258 """DateOffset increments between calendar year begin dates"""
12591259 _default_month = 1
12601260 _prefix = 'AS'
@@ -1300,7 +1300,7 @@ def onOffset(self, dt):
13001300 return dt .month == self .month and dt .day == 1
13011301
13021302
1303- class FY5253 (CacheableOffset , DateOffset ):
1303+ class FY5253 (DateOffset ):
13041304 """
13051305 Describes 52-53 week fiscal year. This is also known as a 4-4-5 calendar.
13061306
@@ -1501,7 +1501,7 @@ def _from_name(cls, *args):
15011501 return cls (** cls ._parse_suffix (* args ))
15021502
15031503
1504- class FY5253Quarter (CacheableOffset , DateOffset ):
1504+ class FY5253Quarter (DateOffset ):
15051505 """
15061506 DateOffset increments between business quarter dates
15071507 for 52-53 week fiscal year (also known as a 4-4-5 calendar).
@@ -1772,7 +1772,7 @@ def _delta_to_nanoseconds(delta):
17721772 + delta .microseconds ) * 1000
17731773
17741774
1775- class Day (CacheableOffset , Tick ):
1775+ class Day (Tick ):
17761776 _inc = timedelta (1 )
17771777 _prefix = 'D'
17781778
0 commit comments