Skip to content

Commit 90d46b8

Browse files
committed
docs: add docs for dic() method
Signed-off-by: punndcoder28 <[email protected]>
1 parent 8f25887 commit 90d46b8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docarray/base_doc/doc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,11 @@ def dict(
311311
) -> 'DictStrAny':
312312
"""
313313
Generate a dictionary representation of the model, optionally specifying
314-
which fields to include or exclude.
314+
which fields to include or exclude. The method also includes the attributes
315+
and their values when attributes are objects of class types which can include
316+
nesting. This method differs from the `dict()` method of python which only
317+
prints the methods and attributes of the object and only the type of the
318+
attribute when attributes are types of other class.
315319
316320
"""
317321

0 commit comments

Comments
 (0)