Skip to content

Commit b3a4070

Browse files
committed
Fix precommit errors - Add 2 spaces before inline comment
1 parent 756fbd4 commit b3a4070

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/_libs/tslibs/offsets.pyx

+7-7
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ cdef class BaseOffset:
610610

611611
>>> pd.offsets.Week(5).rule_code
612612
'W'
613-
""" # noqa
613+
""" # noqa
614614
return self._prefix
615615

616616
@cache_readonly
@@ -638,7 +638,7 @@ cdef class BaseOffset:
638638

639639
>>> pd.offsets.Nano(-3).freqstr
640640
'-3ns'
641-
""" # noqa
641+
""" # noqa
642642
try:
643643
code = self.rule_code
644644
except NotImplementedError:
@@ -821,7 +821,7 @@ cdef class BaseOffset:
821821
--------
822822
>>> pd.offsets.Week(n=1).nanos
823823
ValueError: <Week: weekday=None> is a non-fixed frequency
824-
""" # noqa
824+
""" # noqa
825825
raise ValueError(f"{self} is a non-fixed frequency")
826826

827827
# ------------------------------------------------------------------
@@ -1042,7 +1042,7 @@ cdef class Tick(SingleConstructorOffset):
10421042
--------
10431043
>>> pd.offsets.Hour(5).nanos
10441044
18000000000000
1045-
""" # noqa
1045+
""" # noqa
10461046
return self.n * self._nanos_inc
10471047

10481048
def is_on_offset(self, dt: datetime) -> bool:
@@ -2486,7 +2486,7 @@ cdef class WeekOfMonthMixin(SingleConstructorOffset):
24862486

24872487
>>> pd.offsets.WeekOfMonth(n=1, week=0, weekday=0).rule_code
24882488
'WOM-1MON'
2489-
""" # noqa
2489+
""" # noqa
24902490
weekday = int_to_weekday.get(self.weekday, "")
24912491
if self.week == -1:
24922492
# LastWeekOfMonth
@@ -2548,7 +2548,7 @@ cdef class YearOffset(SingleConstructorOffset):
25482548

25492549
>>> pd.tseries.offsets.YearEnd(n=1, month=6).rule_code
25502550
'YE-JUN'
2551-
""" # noqa
2551+
""" # noqa
25522552
month = MONTH_ALIASES[self.month]
25532553
return f"{self._prefix}-{month}"
25542554

@@ -3550,7 +3550,7 @@ cdef class Week(SingleConstructorOffset):
35503550

35513551
>>> pd.offsets.Week(5).rule_code
35523552
'W'
3553-
""" # noqa
3553+
""" # noqa
35543554
suffix = ""
35553555
if self.weekday is not None:
35563556
weekday = int_to_weekday[self.weekday]

0 commit comments

Comments
 (0)