deepdiff
deepdiff copied to clipboard
Does not support decimals in lists when ignore_order=True
Describe the bug DeepDiff fails with "unsupported operand type(s) for /: 'decimal.Decimal' and 'float'" when input objects have lists with Decimals and ignore_order=True.
To Reproduce
DeepDiff([Decimal('1.52')], [Decimal('1.57')], ignore_order=True)
Expected behavior
{'values_changed': {'root[0]': {'new_value': Decimal('1.57'), 'old_value': Decimal('1.52')}}}
OS, DeepDiff version and Python version (please complete the following information):
- OS: MacOS
- Version: deepdiff-5.6.0