Skip to content

Commit e0f691e

Browse files
crusaderkypearu
andauthored
Update src/array_api_extra/_lib/_utils/_helpers.py
Co-authored-by: Pearu Peterson <[email protected]>
1 parent 712dd9e commit e0f691e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_extra/_lib/_utils/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ def persistent_id(self, obj: object) -> Literal[0, 1, None]: # pyright: ignore[
428428
try:
429429
# Note: a class that defines __slots__ without defining __getstate__
430430
# cannot be pickled with __reduce__(), but can with __reduce_ex__(5)
431-
_ = obj.__reduce_ex__(5)
431+
_ = obj.__reduce_ex__(pickle.HIGHEST_PROTOCOL)
432432
except Exception: # pylint: disable=broad-exception-caught
433433
rest.append(obj)
434434
return 1

0 commit comments

Comments
 (0)