Skip to content

Commit 26ef7b5

Browse files
cchwalaWillAyd
andauthored
Apply suggestions from code review concerning list instead of set
Co-Authored-By: William Ayd <william.ayd@icloud.com>
1 parent b82aaff commit 26ef7b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/missing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def _derive_indices_of_nans_to_preserve(
292292
limit: Optional[int] = None,
293293
limit_area: Optional[str] = None,
294294
limit_direction: Optional[str] = None,
295-
):
295+
) -> List[int]:
296296
"""
297297
Derive the indices of NaNs that shall be preserved after interpolation
298298
This function is called by `interpolate_1d` and takes the arguments with
@@ -310,7 +310,7 @@ def _derive_indices_of_nans_to_preserve(
310310
311311
Returns
312312
-------
313-
preserve_nans: set
313+
preserve_nans: list of int
314314
Set of index pointers to where NaNs should be preserved in `yvalues`
315315
"""
316316

0 commit comments

Comments
 (0)