@@ -1278,7 +1278,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1278
1278
self , other : num | _str | Timedelta | _ListLike | Series [S1 ] | np .timedelta64
1279
1279
) -> Series : ...
1280
1280
# ignore needed for mypy as we want different results based on the arguments
1281
- @overload
1281
+ @overload # type: ignore[override]
1282
1282
def __and__ ( # type: ignore[misc]
1283
1283
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1284
1284
) -> Series [bool ]: ...
@@ -1289,29 +1289,17 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1289
1289
# def __array__(self, dtype: Optional[_bool] = ...) -> _np_ndarray
1290
1290
def __div__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1291
1291
def __eq__ (self , other : object ) -> Series [_bool ]: ... # type: ignore[override]
1292
- def __floordiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [int ]: ...
1293
- def __ge__ (
1292
+ def __floordiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [int ]: ... # type: ignore[override]
1293
+ def __ge__ ( # type: ignore[override]
1294
1294
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta
1295
1295
) -> Series [_bool ]: ...
1296
- def __gt__ (
1296
+ def __gt__ ( # type: ignore[override]
1297
1297
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta
1298
1298
) -> Series [_bool ]: ...
1299
- # def __iadd__(self, other: S1) -> Series[S1]: ...
1300
- # def __iand__(self, other: S1) -> Series[_bool]: ...
1301
- # def __idiv__(self, other: S1) -> Series[S1]: ...
1302
- # def __ifloordiv__(self, other: S1) -> Series[S1]: ...
1303
- # def __imod__(self, other: S1) -> Series[S1]: ...
1304
- # def __imul__(self, other: S1) -> Series[S1]: ...
1305
- # def __ior__(self, other: S1) -> Series[_bool]: ...
1306
- # def __ipow__(self, other: S1) -> Series[S1]: ...
1307
- # def __isub__(self, other: S1) -> Series[S1]: ...
1308
- # def __itruediv__(self, other: S1) -> Series[S1]: ...
1309
- # def __itruediv__(self, other) -> None: ...
1310
- # def __ixor__(self, other: S1) -> Series[_bool]: ...
1311
- def __le__ (
1299
+ def __le__ ( # type: ignore[override]
1312
1300
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta
1313
1301
) -> Series [_bool ]: ...
1314
- def __lt__ (
1302
+ def __lt__ ( # type: ignore[override]
1315
1303
self , other : S1 | _ListLike | Series [S1 ] | datetime | timedelta
1316
1304
) -> Series [_bool ]: ...
1317
1305
@overload
@@ -1324,7 +1312,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1324
1312
def __ne__ (self , other : object ) -> Series [_bool ]: ... # type: ignore[override]
1325
1313
def __pow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1326
1314
# ignore needed for mypy as we want different results based on the arguments
1327
- @overload
1315
+ @overload # type: ignore[override]
1328
1316
def __or__ ( # type: ignore[misc]
1329
1317
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1330
1318
) -> Series [bool ]: ...
@@ -1334,7 +1322,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1334
1322
) -> Series [int ]: ...
1335
1323
def __radd__ (self , other : num | _str | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1336
1324
# ignore needed for mypy as we want different results based on the arguments
1337
- @overload
1325
+ @overload # type: ignore[override]
1338
1326
def __rand__ ( # type: ignore[misc]
1339
1327
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1340
1328
) -> Series [bool ]: ...
@@ -1343,14 +1331,14 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1343
1331
self , other : int | list [int ] | np_ndarray_anyint | Series [int ]
1344
1332
) -> Series [int ]: ...
1345
1333
def __rdiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1346
- def __rdivmod__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1334
+ def __rdivmod__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ... # type: ignore[override]
1347
1335
def __rfloordiv__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1348
1336
def __rmod__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1349
1337
def __rmul__ (self , other : num | _ListLike | Series ) -> Series : ...
1350
1338
def __rnatmul__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1351
1339
def __rpow__ (self , other : num | _ListLike | Series [S1 ]) -> Series [S1 ]: ...
1352
1340
# ignore needed for mypy as we want different results based on the arguments
1353
- @overload
1341
+ @overload # type: ignore[override]
1354
1342
def __ror__ ( # type: ignore[misc]
1355
1343
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1356
1344
) -> Series [bool ]: ...
@@ -1364,7 +1352,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1364
1352
@overload
1365
1353
def __rtruediv__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1366
1354
# ignore needed for mypy as we want different results based on the arguments
1367
- @overload
1355
+ @overload # type: ignore[override]
1368
1356
def __rxor__ ( # type: ignore[misc]
1369
1357
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1370
1358
) -> Series [bool ]: ...
@@ -1390,7 +1378,7 @@ class Series(IndexOpsMixin, NDFrame, Generic[S1]):
1390
1378
def __sub__ (self , other : num | _ListLike | Series ) -> Series : ...
1391
1379
def __truediv__ (self , other : num | _ListLike | Series [S1 ]) -> Series : ...
1392
1380
# ignore needed for mypy as we want different results based on the arguments
1393
- @overload
1381
+ @overload # type: ignore[override]
1394
1382
def __xor__ ( # type: ignore[misc]
1395
1383
self , other : bool | list [bool ] | np_ndarray_bool | Series [bool ]
1396
1384
) -> Series [bool ]: ...
0 commit comments