@@ -123,7 +123,7 @@ async def create(
123
123
cls ,
124
124
store : StoreLike ,
125
125
* ,
126
- attributes : dict [str , Any ] = {}, # noqa: B006, FIXME
126
+ attributes : dict [str , Any ] | None = None ,
127
127
exists_ok : bool = False ,
128
128
zarr_format : ZarrFormat = 3 ,
129
129
) -> AsyncGroup :
@@ -133,6 +133,7 @@ async def create(
133
133
assert not await (store_path / ZARR_JSON ).exists ()
134
134
elif zarr_format == 2 :
135
135
assert not await (store_path / ZGROUP_JSON ).exists ()
136
+ attributes = attributes or {}
136
137
group = cls (
137
138
metadata = GroupMetadata (attributes = attributes , zarr_format = zarr_format ),
138
139
store_path = store_path ,
@@ -311,8 +312,9 @@ async def create_group(
311
312
self ,
312
313
path : str ,
313
314
exists_ok : bool = False ,
314
- attributes : dict [str , Any ] = {}, # noqa: B006, FIXME
315
+ attributes : dict [str , Any ] | None = None ,
315
316
) -> AsyncGroup :
317
+ attributes = attributes or {}
316
318
return await type (self ).create (
317
319
self .store_path / path ,
318
320
attributes = attributes ,
@@ -490,10 +492,11 @@ def create(
490
492
cls ,
491
493
store : StoreLike ,
492
494
* ,
493
- attributes : dict [str , Any ] = {}, # noqa: B006, FIXME
495
+ attributes : dict [str , Any ] | None = None ,
494
496
zarr_format : ZarrFormat = 3 ,
495
497
exists_ok : bool = False ,
496
498
) -> Group :
499
+ attributes = attributes or {}
497
500
obj = sync (
498
501
AsyncGroup .create (
499
502
store ,
0 commit comments