Skip to content

Commit ec713ad

Browse files
authored
[docs][fixlib] Fix some typos in doc-strings (#2304)
1 parent 3457321 commit ec713ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

fixlib/fixlib/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def load_config(self, reload: bool = False) -> None:
157157
if reload and self.restart_required(new_config):
158158
restart()
159159

160-
# update the global config object with the confif from the core
160+
# update the global config object with the config from the core
161161
Config.running_config.data = self.with_default_config(raw_config_json)
162162
# if the raw_config was not empty, we need to set the revision too
163163
if new_config_revision:

fixlib/fixlib/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ def update_node(self, nid, **attrs):
878878
cn = self[nid]
879879
for attr, val in attrs.items():
880880
if attr == "identifier":
881-
# Updating node id meets following contraints:
881+
# Updating node id meets following constraints:
882882
# * Update node identifier property
883883
# * Update parent's followers
884884
# * Update children's parents

fixlib/fixlib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ def merge_json_elements(
491491
merge_strategy: Callable[[JsonElement, JsonElement], JsonElement] = lambda existing_val, update_val: update_val,
492492
) -> JsonElement:
493493
"""
494-
Merges two JsonElements accorting to merge strategy.
494+
Merges two JsonElements according to merge strategy.
495495
By default recursively traverses Dicts and prefers the new value
496496
"""
497497
if isinstance(existing, dict) and isinstance(update, dict):

fixlib/test/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def test_freeze():
479479
# nested too
480480
nested_dict = {"foo": flat_dict}
481481
assert freeze(nested_dict) == frozendict({"foo": frozendict(flat_dict)})
482-
# and a list to tupple
482+
# and a list to tuple
483483
assert freeze([1, 2]) == (1, 2)
484484

485485

0 commit comments

Comments
 (0)