deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

Does not support decimals in lists when ignore_order=True

Open badunas opened this issue 3 years ago • 0 comments

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

badunas avatar Jul 15 '22 18:07 badunas