@@ -115,7 +115,7 @@ def annotates(cls, tp: Any) -> bool:
115
115
116
116
117
117
Attr = Annotated [T , FType .ATTR ]
118
- """Type hint to define attribute fields (``Attr[TAttr ]``).
118
+ """Type hint for attribute fields (``Attr[T ]``).
119
119
120
120
Example:
121
121
::
@@ -138,7 +138,7 @@ class Image(AsDataArray):
138
138
"""
139
139
140
140
Coord = Annotated [Union [Labeled [TDims ], Collection [TDType ], TDType ], FType .COORD ]
141
- """Type hint to define coordinate fields (``Coord[TDims, TDType]``).
141
+ """Type hint for coordinate fields (``Coord[TDims, TDType]``).
142
142
143
143
Example:
144
144
::
@@ -157,7 +157,7 @@ class Image(AsDataArray):
157
157
"""
158
158
159
159
Coordof = Annotated [Union [TDataClass , Any ], FType .COORD ]
160
- """Type hint to define coordinate fields (``Coordof[TDataClass]``).
160
+ """Type hint for coordinate fields (``Coordof[TDataClass]``).
161
161
162
162
Unlike ``Coord``, it specifies a dataclass that defines a DataArray class.
163
163
This is useful when users want to add metadata to dimensions for plotting.
@@ -189,7 +189,7 @@ class Image(AsDataArray):
189
189
"""
190
190
191
191
Data = Annotated [Union [Labeled [TDims ], Collection [TDType ], TDType ], FType .DATA ]
192
- """Type hint to define data fields (``Coordof[TDims, TDType]``).
192
+ """Type hint for data fields (``Coordof[TDims, TDType]``).
193
193
194
194
Example:
195
195
Exactly one data field is allowed in a DataArray class
@@ -210,7 +210,7 @@ class ColorImage(AsDataset):
210
210
"""
211
211
212
212
Dataof = Annotated [Union [TDataClass , Any ], FType .DATA ]
213
- """Type hint to define data fields (``Coordof[TDataClass]``).
213
+ """Type hint for data fields (``Coordof[TDataClass]``).
214
214
215
215
Unlike ``Data``, it specifies a dataclass that defines a DataArray class.
216
216
This is useful when users want to reuse a dataclass in a Dataset class.
@@ -237,7 +237,7 @@ class ColorImage(AsDataset):
237
237
"""
238
238
239
239
Name = Annotated [THashable , FType .NAME ]
240
- """Type hint to define name fields (``Name[TName ]``).
240
+ """Type hint for name fields (``Name[THashable ]``).
241
241
242
242
Example:
243
243
::
0 commit comments