Skip to content

Commit ed1acee

Browse files
committed
use HashableT3 for value/regex
1 parent 694d40d commit ed1acee

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ from pandas._typing import (
9292
HashableT,
9393
HashableT1,
9494
HashableT2,
95+
HashableT3,
9596
IgnoreRaise,
9697
IndexingInt,
9798
IndexLabel,
@@ -798,19 +799,19 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
798799
def replace(
799800
self,
800801
to_replace: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
801-
value: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
802+
value: ReplaceValue | Mapping[HashableT3, ReplaceValue] = ...,
802803
*,
803804
inplace: Literal[True],
804-
regex: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
805+
regex: ReplaceValue | Mapping[HashableT3, ReplaceValue] = ...,
805806
) -> None: ...
806807
@overload
807808
def replace(
808809
self,
809810
to_replace: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
810-
value: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
811+
value: ReplaceValue | Mapping[HashableT3, ReplaceValue] = ...,
811812
*,
812813
inplace: Literal[False] = ...,
813-
regex: ReplaceValue | Mapping[HashableT2, ReplaceValue] = ...,
814+
regex: ReplaceValue | Mapping[HashableT3, ReplaceValue] = ...,
814815
) -> Self: ...
815816
def shift(
816817
self,

0 commit comments

Comments
 (0)