Repository navigation
Ensure named_objs does not fail on unhashable objects - #632
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #632 +/- ##
==========================================
- Coverage 82.91% 82.86% -0.06%
==========================================
Files 5 5
Lines 3073 3081 +8
==========================================
+ Hits 2548 2553 +5
- Misses 525 528 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Even if an explicit namesdict has been provided, it isn't required to be complete. Where that matters is if |
The rest of the code being what in this case? Panel already does and afaik that's the only thing that actually uses the names. |
jbednar
left a comment
There was a problem hiding this comment.
As revised this seems ok to merge, though really Selector needs to just store proper mappings as outlined in other PRs and issues...
Not all objects are hashable so the
named_objsimplementation has started causing some errors (e.g. because mpl colormaps aren't hashable anymore). For unhashable objects we try to reverse map the objects by identity.