Skip to content

Commit 7aa494e

Browse files
committed
Annotations
1 parent 14eaa19 commit 7aa494e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pandas/core/arraylike.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838
class OpsMixin:
39-
def _supports_scalar_op(self, other, op_name: str):
39+
def _supports_scalar_op(self, other, op_name: str) -> bool:
4040
"""
4141
Return False to have unpack_zerodim_and_defer raise a TypeError with
4242
standardized exception message.
@@ -53,7 +53,7 @@ def _supports_scalar_op(self, other, op_name: str):
5353
"""
5454
return True
5555

56-
def _supports_array_op(self, other: ArrayLike, op_name: str):
56+
def _supports_array_op(self, other: ArrayLike, op_name: str) -> bool:
5757
"""
5858
Return False to have unpack_zerodim_and_defer raise a TypeError with
5959
standardized exception message.

pandas/core/arrays/categorical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,10 +1612,10 @@ def map(
16121612
__le__ = _cat_compare_op(operator.le)
16131613
__ge__ = _cat_compare_op(operator.ge)
16141614

1615-
def _supports_scalar_op(self, other, op_name: str):
1615+
def _supports_scalar_op(self, other, op_name: str) -> bool:
16161616
return True
16171617

1618-
def _supports_array_op(self, other, op_name: str):
1618+
def _supports_array_op(self, other: ArrayLike, op_name: str) -> bool:
16191619
return True
16201620

16211621
# -------------------------------------------------------------

pandas/core/arrays/interval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ def __setitem__(self, key, value) -> None:
734734
self._left[key] = value_left
735735
self._right[key] = value_right
736736

737-
def _supports_scalar_op(self, other, op_name):
737+
def _supports_scalar_op(self, other, op_name: str) -> bool:
738738
return True
739739

740-
def _supports_array_op(self, other, op_name):
740+
def _supports_array_op(self, other: ArrayLike, op_name: str) -> bool:
741741
return True
742742

743743
def _cmp_method(self, other, op):

0 commit comments

Comments
 (0)