Skip to content

Commit

Permalink
[docs][fixlib] Fix some typos in doc-strings
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Jan 23, 2025
1 parent 3457321 commit 6563b4f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fixlib/fixlib/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def load_config(self, reload: bool = False) -> None:
if reload and self.restart_required(new_config):
restart()

# update the global config object with the confif from the core
# update the global config object with the config from the core
Config.running_config.data = self.with_default_config(raw_config_json)
# if the raw_config was not empty, we need to set the revision too
if new_config_revision:
Expand Down
2 changes: 1 addition & 1 deletion fixlib/fixlib/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ def update_node(self, nid, **attrs):
cn = self[nid]
for attr, val in attrs.items():
if attr == "identifier":
# Updating node id meets following contraints:
# Updating node id meets following constraints:
# * Update node identifier property
# * Update parent's followers
# * Update children's parents
Expand Down
2 changes: 1 addition & 1 deletion fixlib/fixlib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def merge_json_elements(
merge_strategy: Callable[[JsonElement, JsonElement], JsonElement] = lambda existing_val, update_val: update_val,
) -> JsonElement:
"""
Merges two JsonElements accorting to merge strategy.
Merges two JsonElements according to merge strategy.
By default recursively traverses Dicts and prefers the new value
"""
if isinstance(existing, dict) and isinstance(update, dict):
Expand Down
2 changes: 1 addition & 1 deletion fixlib/test/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def test_freeze():
# nested too
nested_dict = {"foo": flat_dict}
assert freeze(nested_dict) == frozendict({"foo": frozendict(flat_dict)})
# and a list to tupple
# and a list to tuple
assert freeze([1, 2]) == (1, 2)


Expand Down

0 comments on commit 6563b4f

Please sign in to comment.