We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc30a3c commit c1161b3Copy full SHA for c1161b3
deepdiff/diff.py
@@ -421,7 +421,7 @@ def unmangle(attribute):
421
else:
422
all_slots.extend(slots)
423
424
- return {i: getattr(object, unmangle(i), None) for i in all_slots}
+ return {i: getattr(object, key) for i in all_slots if hasattr(object, key := unmangle(i))}
425
426
def _diff_enum(self, level, parents_ids=frozenset(), local_tree=None):
427
t1 = detailed__dict__(level.t1, include_keys=ENUM_INCLUDE_KEYS)
0 commit comments