Skip to content

Commit

Permalink
add NOTE about fields_not_requested != unset_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Dec 17, 2024
1 parent c176278 commit 87c072e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mp_api/client/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,8 @@ def _generate_returned_model(self, doc):
data_model = create_model( # type: ignore
"MPDataDoc",
**include_fields,
# TODO fields_not_requested is not the same as unset_fields
# i.e. field could be requested but not available in the raw doc
fields_not_requested=(list[str], unset_fields),
__base__=self.document_model,
)
Expand Down

0 comments on commit 87c072e

Please sign in to comment.