@@ -86,6 +86,10 @@ ignore_type_subclasses: Boolean, default = False
8686ignore_string_case: Boolean, default = False
8787 Whether to be case-sensitive or not when comparing strings. By settings ignore_string_case=False, strings will be compared case-insensitively.
8888
89+ ignore_nan_inequality: Boolean, default = False
90+ Whether to ignore float('nan') inequality in Python.
91+
92+
8993**Returns **
9094
9195 A DeepDiff object that has already calculated the difference of the 2 items.
@@ -473,6 +477,7 @@ ignore_type_subclasses
473477 >>> DeepDiff(obj_a, obj_c, ignore_type_in_groups = [(ClassA, ClassB)], ignore_type_subclasses = True )
474478 {'values_changed': {'root.x': {'new_value': 3, 'old_value': 1}}, 'attribute_removed': [root.y]}
475479
480+
476481ignore_string_case
477482 Whether to be case-sensitive or not when comparing strings. By settings ignore_string_case=False, strings will be compared case-insensitively.
478483
@@ -482,6 +487,15 @@ ignore_string_case
482487 {}
483488
484489
490+ ignore_nan_inequality
491+ Whether to ignore float('nan') inequality in Python.
492+
493+ >>> float (' nan' ) == float (' nan' )
494+ False
495+ >>> DeepDiff(float (' nan' ), float (' nan' ))
496+ {'values_changed': {'root': {'new_value': nan, 'old_value': nan}}}
497+ >>> DeepDiff(float (' nan' ), float (' nan' ), ignore_nan_inequality = True )
498+ {}
485499
486500**Tree View **
487501
0 commit comments