Skip to content

Commit 6c1e429

Browse files
committed
fixed missing Optional in type definition
1 parent 556a3cf commit 6c1e429

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/missing.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ def interpolate_1d(
288288

289289

290290
def _derive_indices_of_nans_to_preserve(
291-
yvalues: ArrayLike, limit: int, limit_area: str, limit_direction: str
291+
yvalues: ArrayLike,
292+
limit: Optional[int] = None,
293+
limit_area: Optional[str] = None,
294+
limit_direction: Optional[str] = None,
292295
):
293296
"""
294297
Derive the indices of NaNs that shall be preserved after interpolation

0 commit comments

Comments
 (0)