Skip to content

Commit dd6b817

Browse files
committed
mypy fixup
1 parent 564230a commit dd6b817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9133,7 +9133,7 @@ def tshift(self, periods: int = 1, freq=None, axis=0):
91339133
if freq == orig_freq:
91349134
new_data = self._data.copy()
91359135
new_data.axes[block_axis] = index.shift(periods)
9136-
else:
9136+
elif orig_freq is not None:
91379137
msg = (
91389138
f"Given freq {freq.rule_code} does not match"
91399139
f" PeriodIndex freq {orig_freq.rule_code}"

0 commit comments

Comments
 (0)