Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deepdiff/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,7 @@ def _diff_ordered_iterable_by_difflib(
opcodes = seq.get_opcodes()
opcodes_with_values = []

# TODO: this logic should be revisted so we detect reverse operations
# TODO: this logic should be revisited so we detect reverse operations
# like when a replacement happens at index X and a reverse replacement happens at index Y
# in those cases we have a "iterable_item_moved" operation.
for tag, t1_from_index, t1_to_index, t2_from_index, t2_to_index in opcodes:
Expand Down
2 changes: 1 addition & 1 deletion deepdiff/docstrings/deephash_doc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ignore_type_in_groups
1. Set ignore_string_type_changes=True which is the default.
2. Set ignore_type_in_groups=[(str, bytes)]. Here you are saying if we detect one type to be str and the other one bytes, do not report them as type change. It is exactly as passing ignore_type_in_groups=[DeepDiff.strings] or ignore_type_in_groups=DeepDiff.strings .

Now what if you want also typeA and typeB to be ignored when comparing agains each other?
Now what if you want also typeA and typeB to be ignored when comparing against each other?

1. ignore_type_in_groups=[DeepDiff.strings, (typeA, typeB)]
2. or ignore_type_in_groups=[(str, bytes), (typeA, typeB)]
Expand Down
4 changes: 2 additions & 2 deletions deepdiff/docstrings/view.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ You can traverse through the tree elements!
:repetition: Shortcut to get the repetition report


The tree view allows you to have more than mere textual representaion of the diffed objects.
The tree view allows you to have more than mere textual representation of the diffed objects.
It gives you the actual objects (t1, t2) throughout the tree of parents and children.

**Examples for Tree View**
Expand Down Expand Up @@ -199,7 +199,7 @@ List difference ignoring order but reporting repetitions (Tree View)
<root[0]>
>>>
>>> # But the verbosity level does not change the actual report object.
>>> # It only changes the textual representaion of the object. We get the actual object here:
>>> # It only changes the textual representation of the object. We get the actual object here:
>>> repeat1.repetition
{'old_repeat': 1, 'new_repeat': 2, 'old_indexes': [3], 'new_indexes': [0, 1]}
>>> repeat1.t1
Expand Down
2 changes: 1 addition & 1 deletion deepdiff/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def branch_deeper(self,

def copy(self) -> 'DiffLevel':
"""
Get a deep copy of this comparision line.
Get a deep copy of this comparison line.
:return: The leaf ("downmost") object of the copy.
"""
orig = self.all_up
Expand Down