Skip to content

Commit 8b1b312

Browse files
committed
Fix review feedback
1 parent f7953f2 commit 8b1b312

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/_libs/tslibs/offsets.pyx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4554,9 +4554,10 @@ cdef class Easter(SingleConstructorOffset):
45544554
raise ValueError(f"Method must be 1<=method<=3, got {method}")
45554555

45564556
cpdef __setstate__(self, state):
4557+
from dateutil.easter import EASTER_WESTERN
45574558
self.n = state.pop("n")
45584559
self.normalize = state.pop("normalize")
4559-
self.method = state.pop("method")
4560+
self.method = state.pop("method", EASTER_WESTERN)
45604561

45614562
@apply_wraps
45624563
def _apply(self, other: datetime) -> datetime:

0 commit comments

Comments
 (0)