We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03a2840 commit 5963612Copy full SHA for 5963612
src/awkward/_pickle.py
@@ -90,7 +90,7 @@ def use_builtin_reducer():
90
91
92
def custom_reduce(obj, protocol: int) -> tuple | NotImplemented:
93
- if (plugin := get_custom_reducer()) is None or _DISABLE_CUSTOM_REDUCER:
+ if _DISABLE_CUSTOM_REDUCER or (plugin := get_custom_reducer()) is None:
94
return NotImplemented
95
else:
96
return plugin(obj, protocol)
0 commit comments