Skip to content

Commit

Permalink
adjusted code due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Arik Gortsunian authored and Arik Gortsunian committed Dec 24, 2024
1 parent a9161a3 commit bc4395e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def _search_as_object(
self,
data: dict[str, Any],
obj: dict[str, Any],
misconfigurations: dict[str, str] = {},
misconfigurations: dict[str, str] | None = None,
) -> dict[str, Any | None]:
search_tasks: dict[
str, Task[dict[str, Any | None]] | list[Task[dict[str, Any | None]]]
Expand Down
3 changes: 2 additions & 1 deletion port_ocean/core/ocean_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
NamedTuple,
)

from dataclasses import field
from port_ocean.core.models import Entity

RAW_ITEM = dict[Any, Any]
Expand Down Expand Up @@ -37,7 +38,7 @@ class EntitySelectorDiff(NamedTuple):
class CalculationResult(NamedTuple):
entity_selector_diff: EntitySelectorDiff
errors: list[Exception]
misconfigured: dict[str, str] = {}
misconfigured: dict[str, str] = field(default_factory=dict)


class IntegrationEventsCallbacks(TypedDict):
Expand Down

0 comments on commit bc4395e

Please sign in to comment.