Skip to content

Commit fc66d9a

Browse files
committed
remove typeddict
1 parent b67e8e9 commit fc66d9a

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

pandas-stubs/_typing.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,8 +842,4 @@ IntoColumn: TypeAlias = (
842842
AnyArrayLike | Scalar | Callable[[DataFrame], AnyArrayLike | Scalar]
843843
)
844844

845-
class PctChangeKwargs(TypedDict, total=False):
846-
axis: AxisIndex
847-
fill_value: object | None
848-
849845
__all__ = ["npt", "type_t"]

pandas-stubs/core/frame.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ from typing import (
1515
Generic,
1616
Literal,
1717
NoReturn,
18-
Unpack,
1918
overload,
2019
)
2120

@@ -114,7 +113,6 @@ from pandas._typing import (
114113
NaPosition,
115114
NDFrameT,
116115
ParquetEngine,
117-
PctChangeKwargs,
118116
QuantileInterpolation,
119117
RandomState,
120118
ReadBuffer,
@@ -1993,7 +1991,9 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
19931991
fill_method: None = ...,
19941992
limit: int | None = ...,
19951993
freq: Frequency | dt.timedelta | None = None,
1996-
**kwargs: Unpack[PctChangeKwargs],
1994+
*,
1995+
axis: AxisIndex = ...,
1996+
fill_value: object | None = ...,
19971997
) -> Self: ...
19981998
def pop(self, item: _str) -> Series: ...
19991999
def pow(

pandas-stubs/core/series.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ from typing import (
2121
Generic,
2222
Literal,
2323
NoReturn,
24-
Unpack,
2524
overload,
2625
)
2726

@@ -144,7 +143,6 @@ from pandas._typing import (
144143
MaskType,
145144
NaPosition,
146145
ObjectDtypeArg,
147-
PctChangeKwargs,
148146
QuantileInterpolation,
149147
RandomState,
150148
Renamer,
@@ -1554,7 +1552,9 @@ class Series(IndexOpsMixin[S1], NDFrame):
15541552
fill_method: None = ...,
15551553
limit: int | None = ...,
15561554
freq: Frequency | timedelta | None = None,
1557-
**kwargs: Unpack[PctChangeKwargs],
1555+
*,
1556+
axis: AxisIndex = ...,
1557+
fill_value: object | None = ...,
15581558
) -> Series[S1]: ...
15591559
def first_valid_index(self) -> Scalar: ...
15601560
def last_valid_index(self) -> Scalar: ...

0 commit comments

Comments
 (0)