Skip to content

Commit

Permalink
Ensured that param changed comparisons fail on array (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jbednar committed Sep 22, 2018
1 parent 25fe81f commit 9179ba9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion param/parameterized.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def _changed(cls, change):
changed such that old!=new.
"""
try: # To be improved by adding better machinery to test equality for complex types
return (change.old != change.new)
return bool(change.old != change.new)
except:
return True

Expand Down

0 comments on commit 9179ba9

Please sign in to comment.