@@ -8006,8 +8006,6 @@ def replace(
8006
8006
if items :
8007
8007
keys , values = zip (* items )
8008
8008
else :
8009
- # error: Incompatible types in assignment (expression has type
8010
- # "list[Never]", variable has type "tuple[Any, ...]")
8011
8009
keys , values = ([], []) # type: ignore[assignment]
8012
8010
8013
8011
are_mappings = [is_dict_like (v ) for v in values ]
@@ -8825,15 +8823,11 @@ def _clip_with_scalar(self, lower, upper, inplace: bool_t = False):
8825
8823
8826
8824
if lower is not None :
8827
8825
cond = mask | (self >= lower )
8828
- result = result .where (
8829
- cond , lower , inplace = inplace
8830
- ) # type: ignore[assignment]
8826
+ result = result .where (cond , lower , inplace = inplace ) # type: ignore[assignment]
8831
8827
if upper is not None :
8832
8828
cond = mask | (self <= upper )
8833
8829
result = self if inplace else result
8834
- result = result .where (
8835
- cond , upper , inplace = inplace
8836
- ) # type: ignore[assignment]
8830
+ result = result .where (cond , upper , inplace = inplace ) # type: ignore[assignment]
8837
8831
8838
8832
return result
8839
8833
@@ -12242,7 +12236,12 @@ def _accum_func(
12242
12236
12243
12237
if axis == 1 :
12244
12238
return self .T ._accum_func (
12245
- name , func , axis = 0 , skipna = skipna , * args , ** kwargs # noqa: B026
12239
+ name ,
12240
+ func ,
12241
+ axis = 0 ,
12242
+ skipna = skipna ,
12243
+ * args , # noqa: B026
12244
+ ** kwargs ,
12246
12245
).T
12247
12246
12248
12247
def block_accum_func (blk_values ):
@@ -12720,14 +12719,16 @@ def __imul__(self, other) -> Self:
12720
12719
def __itruediv__ (self , other ) -> Self :
12721
12720
# error: Unsupported left operand type for / ("Type[NDFrame]")
12722
12721
return self ._inplace_method (
12723
- other , type (self ).__truediv__ # type: ignore[operator]
12722
+ other ,
12723
+ type (self ).__truediv__ , # type: ignore[operator]
12724
12724
)
12725
12725
12726
12726
@final
12727
12727
def __ifloordiv__ (self , other ) -> Self :
12728
12728
# error: Unsupported left operand type for // ("Type[NDFrame]")
12729
12729
return self ._inplace_method (
12730
- other , type (self ).__floordiv__ # type: ignore[operator]
12730
+ other ,
12731
+ type (self ).__floordiv__ , # type: ignore[operator]
12731
12732
)
12732
12733
12733
12734
@final
@@ -13495,9 +13496,7 @@ def last_valid_index(self) -> Hashable | None:
13495
13496
Series([], dtype: bool)
13496
13497
"""
13497
13498
13498
- _shared_docs [
13499
- "stat_func_example"
13500
- ] = """
13499
+ _shared_docs ["stat_func_example" ] = """
13501
13500
13502
13501
Examples
13503
13502
--------
0 commit comments