You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason that item.to_dict(exclude_none=True, is_recursive=is_recursive) omits the argument exclude_none_in_lists?
I would think that if we are recursively turning prodicts into dicts, we would also want the lists in sub-prodicts to adhere to the original exclude_none_in_lists we pass to the Prodict.to_dict method.
should item.to_dict(exclude_none=True, is_recursive=is_recursive)
be replaced by item.to_dict(exclude_none_in_lists=True, exclude_none=True, is_recursive=is_recursive)
or something to the extent?
The text was updated successfully, but these errors were encountered:
Adding to this, I also found that the supposed recursive application of to_dict was actually obstructed by the check for if exclude_none_in_lists, since this flag is preventing the recursion from taking place for lists.
To have it adhere to what I understand about how this is supposed to function, I would rewrite the _dict_value function as follows:
from version 0.8.18:
Is there a reason that
item.to_dict(exclude_none=True, is_recursive=is_recursive)
omits the argumentexclude_none_in_lists
?I would think that if we are recursively turning prodicts into dicts, we would also want the lists in sub-prodicts to adhere to the original
exclude_none_in_lists
we pass to theProdict.to_dict
method.should
item.to_dict(exclude_none=True, is_recursive=is_recursive)
be replaced by
item.to_dict(exclude_none_in_lists=True, exclude_none=True, is_recursive=is_recursive)
or something to the extent?
The text was updated successfully, but these errors were encountered: