Skip to content

Commit 87c072e

Browse files
committed
add NOTE about fields_not_requested != unset_fields
1 parent c176278 commit 87c072e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mp_api/client/core/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,8 @@ def _generate_returned_model(self, doc):
10751075
data_model = create_model( # type: ignore
10761076
"MPDataDoc",
10771077
**include_fields,
1078+
# TODO fields_not_requested is not the same as unset_fields
1079+
# i.e. field could be requested but not available in the raw doc
10781080
fields_not_requested=(list[str], unset_fields),
10791081
__base__=self.document_model,
10801082
)

0 commit comments

Comments
 (0)