From c86292b34bbb46f2ec344188436a4a9418e99352 Mon Sep 17 00:00:00 2001 From: Chris Hamill Date: Tue, 15 Aug 2023 17:55:34 -0400 Subject: [PATCH] fix if/elif branching otherwise bools get diffed twice --- deepdiff/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deepdiff/diff.py b/deepdiff/diff.py index 36cebb19..7d935946 100755 --- a/deepdiff/diff.py +++ b/deepdiff/diff.py @@ -1533,7 +1533,7 @@ def _diff(self, level, parents_ids=frozenset(), _original_type=None, local_tree= if isinstance(level.t1, booleans): self._diff_booleans(level, local_tree=local_tree) - if isinstance(level.t1, strings): + elif isinstance(level.t1, strings): self._diff_str(level, local_tree=local_tree) elif isinstance(level.t1, datetimes):