Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Nov 12, 2023
1 parent c626f9b commit e977ae2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

## 0.7.1 (unreleased)
## 0.7.2 (unreleased)

## 0.7.0 (2023-11-08)
## 0.7.1 (2023-11-08)

- Support compact serialization forrmat using `key_map` and `value_map`.
- Better support for working with derived classes (overload methods instead of
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/ug_clones.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ locations::
│ ╰── 'a2'
╰── 'B'
├── 'b1'
╰── 'a2' <- 2nd occurence
╰── 'a2' <- 2nd occurrence

.. seealso::
`Clones` have several appliances in the real world, for example store items
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/ug_graphs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Given this tree ::
│ ╰── 'a2'
╰── 'B'
╰── 'b1'
├── 'a11' <- second occurence
├── 'a11' <- second occurrence
╰── 'b11'

we can write a DOT formatted file like so::
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx/ug_serialize.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ and retrieved like so::

The result will be written as a compact list of (parent-index, data) tuples. |br|
The parent index starts with #1, since #0 is reserved for the system root node. |br|
Note how the 2nd occurence of 'a11' only stores the index of the first
Note how the 2nd occurrence of 'a11' only stores the index of the first
instance::

{
Expand Down
4 changes: 2 additions & 2 deletions nutree/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1380,8 +1380,8 @@ def to_list_iter(
node_data = node._data
data_id = calc_id(node_data)

# If node is a 2nd occurence of a clone, only store the index of the
# first occurence and do not call the mapper
# If node is a 2nd occurrence of a clone, only store the index of the
# first occurrence and do not call the mapper
node_kind = getattr(node, "kind", None)

clone_idx, clone_kind = clone_idx_and_kind_map.get(data_id, (None, None))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ def test_data_id(self):
with pytest.raises(ValueError): # missing args
tree.find_first("a1").set_data(None)

# Only rename first occurence:
# Only rename first occurrence:
tree.find_first("a1").set_data("new_a1", with_clones=False)

assert fixture.check_content(
Expand Down

0 comments on commit e977ae2

Please sign in to comment.