Skip to content

Commit 3a4fa3b

Browse files
committed
fixing the doc
1 parent af303c1 commit 3a4fa3b

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ Tested on Python 3.6+ and PyPy3.
1818

1919
## What is new?
2020

21+
DeepDiff 6-1-0
22+
23+
- DeepDiff.affected_paths can be used to get the list of all paths where a change, addition, or deletion was reported for.
24+
- DeepDiff.affected_root_keys can be used to get the list of all paths where a change, addition, or deletion was reported for.
25+
- Bugfix: ValueError when using Decimal 0.x #339 by [Enric Pou](https://github.com/epou)
26+
- Serialization of UUID
27+
2128
DeepDiff 6-0-0
2229

2330
- [Exclude obj callback strict](https://github.com/seperman/deepdiff/pull/320/files) parameter is added to DeepDiff by Mikhail Khviyuzov [mskhviyu](https://github.com/mskhviyu).

deepdiff/diff.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,14 @@ def _group_iterable_to_dict(self, item, group_by, item_name):
14311431
def get_stats(self):
14321432
"""
14331433
Get some stats on internals of the DeepDiff run.
1434+
"""
1435+
return self._stats
1436+
1437+
@property
1438+
def affected_paths(self):
1439+
"""
1440+
Get the list of paths that were affected.
1441+
Whether a value was changed or they were added or removed.
14341442
14351443
Example
14361444
>>> t1 = {1: 1, 2: 2, 3: [3], 4: 4}
@@ -1447,14 +1455,6 @@ def get_stats(self):
14471455
>>> ddiff.affected_root_keys
14481456
OrderedSet([3, 4, 5, 6, 2])
14491457
1450-
"""
1451-
return self._stats
1452-
1453-
@property
1454-
def affected_paths(self):
1455-
"""
1456-
Get the list of paths that were affected.
1457-
Whether a value was changed or they were added or removed.
14581458
"""
14591459
result = OrderedSet()
14601460
for key in REPORT_KEYS:

0 commit comments

Comments
 (0)