@@ -752,7 +752,12 @@ def swapaxes(self: FrameOrSeries, axis1, axis2, copy=True) -> FrameOrSeries:
752
752
# ignore needed because of NDFrame constructor is different than
753
753
# DataFrame/Series constructors.
754
754
return self ._constructor (
755
- new_values , * new_axes # type: ignore[arg-type]
755
+ # error: Argument 2 to "NDFrame" has incompatible type "*Generator[Index,
756
+ # None, None]"; expected "bool" [arg-type]
757
+ # error: Argument 2 to "NDFrame" has incompatible type "*Generator[Index,
758
+ # None, None]"; expected "Optional[Mapping[Optional[Hashable], Any]]"
759
+ new_values ,
760
+ * new_axes , # type: ignore[arg-type]
756
761
).__finalize__ (self , method = "swapaxes" )
757
762
758
763
@final
@@ -11046,37 +11051,47 @@ def _inplace_method(self, other, op):
11046
11051
return self
11047
11052
11048
11053
def __iadd__ (self , other ):
11054
+ # error: Unsupported left operand type for + ("Type[NDFrame]")
11049
11055
return self ._inplace_method (other , type (self ).__add__ ) # type: ignore[operator]
11050
11056
11051
11057
def __isub__ (self , other ):
11058
+ # error: Unsupported left operand type for - ("Type[NDFrame]")
11052
11059
return self ._inplace_method (other , type (self ).__sub__ ) # type: ignore[operator]
11053
11060
11054
11061
def __imul__ (self , other ):
11062
+ # error: Unsupported left operand type for * ("Type[NDFrame]")
11055
11063
return self ._inplace_method (other , type (self ).__mul__ ) # type: ignore[operator]
11056
11064
11057
11065
def __itruediv__ (self , other ):
11066
+ # error: Unsupported left operand type for / ("Type[NDFrame]")
11058
11067
return self ._inplace_method (
11059
11068
other , type (self ).__truediv__ # type: ignore[operator]
11060
11069
)
11061
11070
11062
11071
def __ifloordiv__ (self , other ):
11072
+ # error: Unsupported left operand type for // ("Type[NDFrame]")
11063
11073
return self ._inplace_method (
11064
11074
other , type (self ).__floordiv__ # type: ignore[operator]
11065
11075
)
11066
11076
11067
11077
def __imod__ (self , other ):
11078
+ # error: Unsupported left operand type for % ("Type[NDFrame]")
11068
11079
return self ._inplace_method (other , type (self ).__mod__ ) # type: ignore[operator]
11069
11080
11070
11081
def __ipow__ (self , other ):
11082
+ # error: Unsupported left operand type for ** ("Type[NDFrame]")
11071
11083
return self ._inplace_method (other , type (self ).__pow__ ) # type: ignore[operator]
11072
11084
11073
11085
def __iand__ (self , other ):
11086
+ # error: Unsupported left operand type for & ("Type[NDFrame]")
11074
11087
return self ._inplace_method (other , type (self ).__and__ ) # type: ignore[operator]
11075
11088
11076
11089
def __ior__ (self , other ):
11090
+ # error: Unsupported left operand type for | ("Type[NDFrame]")
11077
11091
return self ._inplace_method (other , type (self ).__or__ ) # type: ignore[operator]
11078
11092
11079
11093
def __ixor__ (self , other ):
11094
+ # error: Unsupported left operand type for ^ ("Type[NDFrame]")
11080
11095
return self ._inplace_method (other , type (self ).__xor__ ) # type: ignore[operator]
11081
11096
11082
11097
# ----------------------------------------------------------------------
0 commit comments