Skip to content

Commit dc3ef63

Browse files
authored
test: remove pyarrow prerelease pin (#327)
The referred upstream issue has been fixed. See: https://togithub.com/apache/arrow/issues/45380 fixes #321
1 parent b614d07 commit dc3ef63

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

db_dtypes/json.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,10 @@ def __array__(self, dtype=None, copy: bool | None = None) -> np.ndarray:
257257

258258

259259
class JSONArrowScalar(pa.ExtensionScalar):
260-
def as_py(self):
261-
return JSONArray._deserialize_json(self.value.as_py() if self.value else None)
260+
def as_py(self, **kwargs):
261+
return JSONArray._deserialize_json(
262+
self.value.as_py(**kwargs) if self.value else None
263+
)
262264

263265

264266
class JSONArrowType(pa.ExtensionType):

noxfile.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,7 @@ def prerelease(session, tests_path):
199199
"--prefer-binary",
200200
"--pre",
201201
"--upgrade",
202-
# Limit pyarrow to versions prior to 20.0.0.dev19 to prevent a RuntimeWarning
203-
# during import. This workaround can be removed once the underlying issue
204-
# in pyarrow is resolved (see: https://github.com/apache/arrow/issues/45380).
205-
"pyarrow<=20.0.0.dev18",
202+
"pyarrow",
206203
)
207204
# Avoid pandas==2.2.0rc0 as this version causes PyArrow to fail. Once newer
208205
# prerelease comes out, this constraint can be removed. See

0 commit comments

Comments
 (0)