We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c176278 commit 87c072eCopy full SHA for 87c072e
1 file changed
mp_api/client/core/client.py
@@ -1075,6 +1075,8 @@ def _generate_returned_model(self, doc):
1075
data_model = create_model( # type: ignore
1076
"MPDataDoc",
1077
**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
1080
fields_not_requested=(list[str], unset_fields),
1081
__base__=self.document_model,
1082
)
0 commit comments