From c8d757f4d5c43564271e1c380f3e6a1596caa49c Mon Sep 17 00:00:00 2001 From: chalmer lowe Date: Tue, 21 Apr 2026 14:17:56 -0400 Subject: [PATCH] chore(db-dtypes): fix mypy errors --- packages/db-dtypes/db_dtypes/json.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/db-dtypes/db_dtypes/json.py b/packages/db-dtypes/db_dtypes/json.py index 37aad83da80c..8e06db0cf827 100644 --- a/packages/db-dtypes/db_dtypes/json.py +++ b/packages/db-dtypes/db_dtypes/json.py @@ -181,9 +181,9 @@ def pa_data(self): def _cmp_method(self, other, op): if op.__name__ == "eq": - result = pyarrow.compute.equal(self.pa_data, self._box_pa(other)) + result = pyarrow.compute.equal(self.pa_data, self._box_pa(other)) # type: ignore[attr-defined] elif op.__name__ == "ne": - result = pyarrow.compute.not_equal(self.pa_data, self._box_pa(other)) + result = pyarrow.compute.not_equal(self.pa_data, self._box_pa(other)) # type: ignore[attr-defined] else: # Comparison is not a meaningful one. We don't want to support sorting by JSON columns. raise TypeError(f"{op.__name__} not supported for JSONArray")