Skip to content

Commit f1a4dec

Browse files
committed
increased stacklevel to account for a new wrapper introduced by doc() decorator
1 parent 4f72d45 commit f1a4dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/datetimelike.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ def shift(self, periods=1, fill_value=None, axis=0):
784784
"will raise in a future version, pass "
785785
f"{self._scalar_type.__name__} instead.",
786786
FutureWarning,
787-
stacklevel=7,
787+
stacklevel=9,
788788
)
789789
fill_value = new_fill
790790

0 commit comments

Comments
 (0)