@@ -505,7 +505,7 @@ def astype(self, dtype, copy=True):
505
505
506
506
if is_period_dtype (dtype ):
507
507
return self .asfreq (dtype .freq )
508
- return super (PeriodArray , self ).astype (dtype , copy = copy )
508
+ return super ().astype (dtype , copy = copy )
509
509
510
510
@property
511
511
def flags (self ):
@@ -560,7 +560,7 @@ def _add_offset(self, other):
560
560
# Note: when calling parent class's _add_timedeltalike_scalar,
561
561
# it will call delta_to_nanoseconds(delta). Because delta here
562
562
# is an integer, delta_to_nanoseconds will return it unchanged.
563
- result = super (PeriodArray , self )._add_timedeltalike_scalar (other .n )
563
+ result = super ()._add_timedeltalike_scalar (other .n )
564
564
return type (self )(result , freq = self .freq )
565
565
566
566
def _add_timedeltalike_scalar (self , other ):
@@ -584,7 +584,7 @@ def _add_timedeltalike_scalar(self, other):
584
584
# Note: when calling parent class's _add_timedeltalike_scalar,
585
585
# it will call delta_to_nanoseconds(delta). Because delta here
586
586
# is an integer, delta_to_nanoseconds will return it unchanged.
587
- ordinals = super (PeriodArray , self )._add_timedeltalike_scalar (other )
587
+ ordinals = super ()._add_timedeltalike_scalar (other )
588
588
return ordinals
589
589
590
590
def _add_delta_tdi (self , other ):
@@ -620,7 +620,7 @@ def _add_delta(self, other):
620
620
# We cannot add timedelta-like to non-tick PeriodArray
621
621
_raise_on_incompatible (self , other )
622
622
623
- new_ordinals = super (PeriodArray , self )._add_delta (other )
623
+ new_ordinals = super ()._add_delta (other )
624
624
return type (self )(new_ordinals , freq = self .freq )
625
625
626
626
def _check_timedeltalike_freq_compat (self , other ):
0 commit comments