Skip to content

Commit 7a3446e

Browse files
committed
fixed a minor mistake leading to incorrect unflattening for static keys
1 parent 31999bb commit 7a3446e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chex/_src/dataclass.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def _flatten_with_path(dcls):
282282
# Store the static keys separately.
283283
if (dcls.static_keynames is not None and
284284
k.name in dcls.static_keynames):
285-
static_keynames.append(k)
285+
static_keynames.append(k.name)
286286
static_keyvals.append(v)
287287
else:
288288
path.append((k, v))

0 commit comments

Comments
 (0)