diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index c292e3cec4978..9f1767befd18a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1352,7 +1352,7 @@ def pad_or_backfill( inplace: bool = False, limit: int | None = None, limit_direction: Literal["forward", "backward", "both"] = "forward", - limit_area: str | None = None, + limit_area: Literal["inside", "outside"] | None = None, fill_value: Any | None = None, downcast: Literal["infer"] | None = None, using_cow: bool = False,