Can't serialize a list that I cobble together in State #3013
hragbalian
announced in
Q&A
Replies: 1 comment 1 reply
-
@hragbalian The list and dict types are wrapped so that we can detect mutations in them. Try this to get the underlying values: my_list = self.get_value(self.my_list)
print(type(self.my_list))
print(type(my_list)) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have a list that I'm cobbling together in the State through a series of checkbox selections but it looks like the list is no longer serializable once
append
,remove
or other common list operations are applied to it. The list becomes a MutableProxy type. I need the list to be serializable to pass it through as a payload in an API call.Here is the gist for what I'm doing:
Any guidance would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions