-
Couldn't load subscription status.
- Fork 1.8k
added function to tupleize lists inside (nested) dicts #2939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added function to tupleize lists inside (nested) dicts #2939
Conversation
e1b8942 to
92adaea
Compare
92adaea to
c87efdd
Compare
|
Thanks for this @JustCallMeDavid ! I modified the testing a bit and will get the typing/linting sorted out, but the tupelizing function is great! |
|
Hi @pacrob, thanks a lot for the review and fixing up the tests, they look a lot better now. Linting and typing should pass now, but please have a look - not sure if it could not be done better (was having trouble getting the dict assignments to work with more precise types). |
|
Yep, I worked on the typing for a while and couldn't get anything more precise either. I'll get some other eyes on it just to check, but otherwise I think we're good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment as some food for thought. I'm good with the current implementation but I think we can make this a bit more of a catch-all for non-hashable types... or at least non-tuple Iterable types to make it a bit simpler. Curious on thoughts there.
15ab889 to
a7f1b52
Compare
a7f1b52 to
ca74990
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. Thanks @JustCallMeDavid + @pacrob 👍🏼
What was wrong?
Closes #2908
How was it fixed?
Tupleized (nested) lists to render them hash-able inside
AttributeDictinstancesCute Animal Picture
This is Rosie. Adoption profile here: https://www.petfinder.com/dog/rosie-61590987/ny/canastota/wanderers-rest-humane-association-ny79/