You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistency between return type of Group.attrs and AsyncGroup.attrs #2214
There's an inconsistency between Group.attrs and AsyncGroup.attrs. Group.attrs returns an Attributes object while AsyncGroup.attrs returns an Attributes object. Just wanted to confirm that this is deliberate.
I'm planning to add an asdict() method to Attributes for v2 compatibility.
Steps to reproduce
In [13]: g=zarr.open_group(store={}, mode="w")
In [14]: g.attrsOut[14]: <zarr.core.attributes.Attributesat0x10bd902e0>In [15]: g._async_group.attrsOut[15]: {}
Good catch @TomAugspurger. I had forgotten to come back to this.
The dict-like attrs property on the sync Array is not really possible for the AsyncArray. My conclusion is that we probably need something like an AsyncAttributes class:
Activity
jhamman commentedon Sep 24, 2024
Good catch @TomAugspurger. I had forgotten to come back to this.
The dict-like attrs property on the sync Array is not really possible for the
AsyncArray. My conclusion is that we probably need something like anAsyncAttributesclass:dstansby commentedon Dec 30, 2024
Is this something that wants fixing before v3, or something that is going to be intentionally left as is?
jhamman commentedon Jan 8, 2025
We can fix this after 3.0.0.