FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

docs: add docs for dict() method by punndcoder28 · Pull Request #1643 · docarray/docarray · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 5 additions & 1 deletion docarray/base_doc/doc.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,11 @@ def dict(
) -> 'DictStrAny':
"""
Generate a dictionary representation of the model, optionally specifying
which fields to include or exclude.
which fields to include or exclude. The method also includes the attributes
and their values when attributes are objects of class types which can include
nesting. This method differs from the `dict()` method of python which only
prints the methods and attributes of the object and only the type of the
Comment thread
punndcoder28 marked this conversation as resolved.
attribute when attributes are types of other class.

"""

Expand Down

Back | FazBrowse Home | New Git URL