Skip to content

Commit

Permalink
lint fixes
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 bb3347e commit 331129e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class MappedEntity:
entity: dict[str, Any] = field(default_factory=dict)
did_entity_pass_selector: bool = False
raw_data: Optional[dict[str, Any]] = None
misconfigurations: Optional[dict[str, str]] = None
misconfigurations: dict[str, str] = {}


class JQEntityProcessor(BaseEntityProcessor):
Expand Down Expand Up @@ -154,7 +154,7 @@ async def _get_mapped_entity(
mapped_entity,
did_entity_pass_selector=should_run,
raw_data=data if should_run else None,
misconfigurations=misconfigurations if should_run else None,
misconfigurations=misconfigurations,
)

return MappedEntity()
Expand Down
3 changes: 1 addition & 2 deletions port_ocean/core/ocean_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Callable,
Awaitable,
NamedTuple,
Optional,
)

from port_ocean.core.models import Entity
Expand Down Expand Up @@ -38,7 +37,7 @@ class EntitySelectorDiff(NamedTuple):
class CalculationResult(NamedTuple):
entity_selector_diff: EntitySelectorDiff
errors: list[Exception]
misconfigured: Optional[dict[str, str]]
misconfigured: dict[str, str] = {}


class IntegrationEventsCallbacks(TypedDict):
Expand Down

0 comments on commit 331129e

Please sign in to comment.