Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Mecoli1219 <[email protected]>
  • Loading branch information
Mecoli1219 committed Aug 3, 2024
1 parent 8306d2a commit 75e317f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions flytekit/tools/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,9 +565,7 @@ def get_serializable_node(
inputs=entity.bindings,
upstream_node_ids=[n.id for n in upstream_nodes],
output_aliases=[],
array_node=get_serializable_array_node(
entity_mapping, settings, entity, options=options
),
array_node=get_serializable_array_node(entity_mapping, settings, entity, options=options),
)
elif isinstance(entity.flyte_entity, ArrayNodeMapTask):
node_model = workflow_model.Node(
Expand All @@ -576,9 +574,7 @@ def get_serializable_node(
inputs=entity.bindings,
upstream_node_ids=[n.id for n in upstream_nodes],
output_aliases=[],
array_node=get_serializable_array_node_map_task(
entity_mapping, settings, entity, options=options
),
array_node=get_serializable_array_node_map_task(entity_mapping, settings, entity, options=options),
)
# TODO: do I need this?
# if entity._aliases:
Expand Down Expand Up @@ -726,9 +722,7 @@ def get_serializable_array_node(
) -> ArrayNodeModel:
array_node = node.flyte_entity
return ArrayNodeModel(
node=get_serializable_node(
entity_mapping, settings, array_node, options=options
),
node=get_serializable_node(entity_mapping, settings, array_node, options=options),
parallelism=array_node.concurrency,
min_successes=array_node.min_successes,
min_success_ratio=array_node.min_success_ratio,
Expand Down Expand Up @@ -916,9 +910,7 @@ def get_serializable(
cp_entity = entity

elif isinstance(entity, ArrayNode):
cp_entity = get_serializable_array_node(
entity_mapping, settings, entity, options
)
cp_entity = get_serializable_array_node(entity_mapping, settings, entity, options)

else:
raise Exception(f"Non serializable type found {type(entity)} Entity {entity}")
Expand Down

0 comments on commit 75e317f

Please sign in to comment.