Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroBone committed Feb 11, 2024
2 parents e9440ff + da17651 commit f03f7f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/officialeye/_internal/diffobject/difference_expansion.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def _do_add(specification_dict: Dict[str, any],
continue

specification_entry = specification_dict[key]
current_value = current_dict[key] if key in current_dict else None # corresponding value in `self._cur_object`
current_value = current_dict.get(key) # corresponding value in `self._cur_object`
object_value = object_dict[key] # corresponding value in `partial_object`
object_value_diff_mode = object_dict[f"${key}"] if f"${key}" in object_dict else None
object_value_diff_mode = object_dict.get(f"${key}", None)

full_key = f"{previous_keys}{key}"

Expand Down
2 changes: 1 addition & 1 deletion src/officialeye/_internal/template/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ def load_mutator_from_dict(mutator_dict: Dict[str, any], /) -> IMutator:

mutator_id = mutator_dict["id"]

mutator_config = mutator_dict["config"] if "config" in mutator_dict else {}
mutator_config = mutator_dict.get("config", {})

return get_internal_context().get_mutator(mutator_id, mutator_config)
4 changes: 4 additions & 0 deletions src/officialeye/detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
Module providing an API for all OfficialEye's document detection tools.
"""

# disable unused imports ruff check
# ruff: noqa: F401

# noinspection PyProtectedMember
from officialeye._api.detection import detect

0 comments on commit f03f7f1

Please sign in to comment.