Skip to content

Commit b05d3d1

Browse files
committed
wip
1 parent 378983c commit b05d3d1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pandas-stubs/_typing.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ ReplaceValue: TypeAlias = (
740740
| Pattern
741741
| NAType
742742
| Sequence[Scalar | Pattern]
743-
| Mapping[Hashable, Scalar]
743+
| Mapping[HashableT, ScalarT]
744744
| Series[Any]
745745
| None
746746
)

pandas-stubs/core/frame.pyi

+6-6
Original file line numberDiff line numberDiff line change
@@ -797,20 +797,20 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
797797
@overload
798798
def replace(
799799
self,
800-
to_replace: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
801-
value: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
800+
to_replace: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
801+
value: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
802802
*,
803803
inplace: Literal[True],
804-
regex: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
804+
regex: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
805805
) -> None: ...
806806
@overload
807807
def replace(
808808
self,
809-
to_replace: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
810-
value: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
809+
to_replace: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
810+
value: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
811811
*,
812812
inplace: Literal[False] = ...,
813-
regex: ReplaceValue | Mapping[Hashable, ReplaceValue] = ...,
813+
regex: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
814814
) -> Self: ...
815815
def shift(
816816
self,

0 commit comments

Comments
 (0)