Skip to content

Commit b4a114d

Browse files
committed
document namedconfig
1 parent d408b9d commit b4a114d

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/zarr/core/common.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,19 @@
5050

5151

5252
class NamedConfig(TypedDict, Generic[TName, TConfig]):
53+
"""
54+
A typed dictionary representing an object with a name and configuration, where the configuration
55+
is a mapping of string keys to values, e.g. another typed dictionary or a JSON object.
56+
57+
This class is generic with two type parameters: the type of the name (``TName``) and the type of
58+
the configuration (``TConfig``).
59+
"""
60+
5361
name: ReadOnly[TName]
62+
"""The name of the object."""
63+
5464
configuration: ReadOnly[TConfig]
65+
"""The configuration of the object."""
5566

5667

5768
def product(tup: ChunkCoords) -> int:

0 commit comments

Comments
 (0)