Skip to content

Commit dd2f0d2

Browse files
authored
Using Literal["a"] instead of str in generic.py (#52742)
fixes: specify limit_area in interpolate more precisely an specify how in asfreq more precisely
1 parent f960208 commit dd2f0d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7524,7 +7524,7 @@ def interpolate(
75247524
limit: int | None = None,
75257525
inplace: bool_t = False,
75267526
limit_direction: Literal["forward", "backward", "both"] | None = None,
7527-
limit_area: str | None = None,
7527+
limit_area: Literal["inside", "outside"] | None = None,
75287528
downcast: str | None = None,
75297529
**kwargs,
75307530
) -> Self | None:
@@ -8346,7 +8346,7 @@ def asfreq(
83468346
self,
83478347
freq: Frequency,
83488348
method: FillnaOptions | None = None,
8349-
how: str | None = None,
8349+
how: Literal["start", "end"] | None = None,
83508350
normalize: bool_t = False,
83518351
fill_value: Hashable = None,
83528352
) -> Self:

0 commit comments

Comments
 (0)