We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97a78b commit a5dbd21Copy full SHA for a5dbd21
2 files changed
CHANGELOG.md
@@ -23,6 +23,8 @@ To release a new version (e.g. from `1.0.0` -> `2.0.0`):
23
24
## [Unreleased]
25
26
+* Fix `etree.spec_like` support
27
+
28
## [1.5.1] - 2023-08-30
29
30
* Fix look_at compatibility with pytorch
dataclass_array/array_dataclass.py
@@ -1103,6 +1103,9 @@ def is_value_missing(self) -> bool:
1103
# In `jax/_src/api_util.py` for `flatten_axes`, jax set all values to a
1104
# dummy sentinel `object()` value.
1105
return True
1106
+ elif isinstance(self.value, enp.ArraySpec):
1107
+ # `etree.spec_like` compatibility
1108
+ return True
1109
elif (
1110
isinstance(self.value, DataclassArray) and not self.value._array_fields # pylint: disable=protected-access
1111
):
0 commit comments