Skip to content

Commit 4d9ec5b

Browse files
fix return type of fillna
1 parent 0fe1d1a commit 4d9ec5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6948,7 +6948,7 @@ def fillna(
69486948
axis: Axis | None = None,
69496949
inplace: bool = False,
69506950
limit: int | None = None,
6951-
) -> Self | None:
6951+
) -> Self:
69526952
"""
69536953
Fill NA/NaN values with `value`.
69546954
@@ -8216,10 +8216,10 @@ def _clip_with_scalar(self, lower, upper, inplace: bool = False):
82168216

82178217
if lower is not None:
82188218
cond = mask | (self >= lower)
8219-
result = result.where(cond, lower, inplace=inplace) # type: ignore[assignment]
8219+
result = result.where(cond, lower, inplace=inplace)
82208220
if upper is not None:
82218221
cond = mask | (self <= upper)
8222-
result = result.where(cond, upper, inplace=inplace) # type: ignore[assignment]
8222+
result = result.where(cond, upper, inplace=inplace)
82238223

82248224
return result
82258225

0 commit comments

Comments
 (0)