Skip to content

Commit 655475d

Browse files
authored
chore(db-dtypes): fix mypy errors (#16754)
This PR fixes mypy errors in db-dtypes regarding missing attributes in pyarrow.compute by adding type ignores.
1 parent 45517d6 commit 655475d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/db-dtypes/db_dtypes

packages/db-dtypes/db_dtypes/json.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ def pa_data(self):
181181

182182
def _cmp_method(self, other, op):
183183
if op.__name__ == "eq":
184-
result = pyarrow.compute.equal(self.pa_data, self._box_pa(other))
184+
result = pyarrow.compute.equal(self.pa_data, self._box_pa(other)) # type: ignore[attr-defined]
185185
elif op.__name__ == "ne":
186-
result = pyarrow.compute.not_equal(self.pa_data, self._box_pa(other))
186+
result = pyarrow.compute.not_equal(self.pa_data, self._box_pa(other)) # type: ignore[attr-defined]
187187
else:
188188
# Comparison is not a meaningful one. We don't want to support sorting by JSON columns.
189189
raise TypeError(f"{op.__name__} not supported for JSONArray")

0 commit comments

Comments
 (0)