Skip to content

Commit d323ec3

Browse files
committed
mypy fixup
1 parent 459d655 commit d323ec3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def _cmp_method(self, other, op) -> ArrowExtensionArray:
729729
f"{op.__name__} not implemented for {type(other)}"
730730
)
731731
result = ArrowExtensionArray(result)
732-
if self.dtype.na_value is np.nan:
732+
if self.dtype.na_value is np.nan: # type: ignore[comparison-overlap]
733733
# i.e. ArrowStringArray with Numpy Semantics
734734
if op == operator.ne:
735735
return result.to_numpy(np.bool_, na_value=True)
@@ -1531,7 +1531,7 @@ def value_counts(self, dropna: bool = True) -> Series:
15311531
index = Index(type(self)(values))
15321532

15331533
result = Series(counts, index=index, name="count", copy=False)
1534-
if self.dtype.na_value is np.nan:
1534+
if self.dtype.na_value is np.nan: # type: ignore[comparison-overlap]
15351535
# i.e. ArrowStringArray with Numpy Semantics
15361536
return Series(counts.to_numpy(), index=index, name="count", copy=False)
15371537
return result

0 commit comments

Comments
 (0)