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 8fdb605 commit 0ac17ccCopy full SHA for 0ac17cc
src/zarr/core/attributes.py
@@ -1,6 +1,6 @@
1
from __future__ import annotations
2
3
-from collections.abc import Mapping, MutableMapping
+from collections.abc import MutableMapping
4
from typing import TYPE_CHECKING
5
6
from zarr.core.common import JSON
@@ -36,7 +36,7 @@ def __iter__(self) -> Iterator[str]:
36
def __len__(self) -> int:
37
return len(self._obj.metadata.attributes)
38
39
- def put(self, d: Mapping[str, JSON]) -> None:
+ def put(self, d: dict[str, JSON]) -> None:
40
"""
41
Overwrite all attributes with the values from `d`.
42
0 commit comments