diff --git a/port_ocean/core/handlers/entity_processor/jq_entity_processor.py b/port_ocean/core/handlers/entity_processor/jq_entity_processor.py index be4efab911..839c63ad17 100644 --- a/port_ocean/core/handlers/entity_processor/jq_entity_processor.py +++ b/port_ocean/core/handlers/entity_processor/jq_entity_processor.py @@ -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]]] diff --git a/port_ocean/core/ocean_types.py b/port_ocean/core/ocean_types.py index 5413e0fd56..8520b79bd3 100644 --- a/port_ocean/core/ocean_types.py +++ b/port_ocean/core/ocean_types.py @@ -7,6 +7,7 @@ NamedTuple, ) +from dataclasses import field from port_ocean.core.models import Entity RAW_ITEM = dict[Any, Any] @@ -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):