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
{{ message }}
Repository navigation
__hash__ implementation in Component attempts to hash unhashable properties list if present #153
The Component class' __hash__ implementation attempts to hash an unhashable list of Property objects if present. This prevents Component objects from being compared, which in turn prevents one from adding Component objects to Bom objects via Bom's add_component method.
Agree @jkowalleck. This will require a fair bit of work to do "right", but will include a temp fix for this in the next release and leave this open to track a proper fix.
Activity
jkowalleck commentedon Jan 29, 2022
expected fix:
hash()on objects that are expected to hash.__hash__()method in the classes that need one.fix: temporary fix for `__hash__` of Component with `properties` #153
madpah commentedon Jan 31, 2022
Agree @jkowalleck. This will require a fair bit of work to do "right", but will include a temp fix for this in the next release and leave this open to track a proper fix.
madpah commentedon Jan 31, 2022
Thanks for the report @0t1s1 !
feat: addressed `__hash__` methods in a number of model classes and a…
feat: Complete support for `bom.components` (#155)