Skip to content

Commit

Permalink
revert to prvious
Browse files Browse the repository at this point in the history
Signed-off-by: rashidakanchwala <[email protected]>
  • Loading branch information
rashidakanchwala committed Jan 22, 2025
1 parent 0395b51 commit 35b30f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package/kedro_viz/models/flowchart/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ def _extract_wrapped_func(func: FunctionType) -> FunctionType:
if func.__closure__:
closure = (c.cell_contents for c in func.__closure__)
wrapped_func = next((c for c in closure if isinstance(c, FunctionType)), None)
return func if wrapped_func is None else wrapped_func
if wrapped_func:
return wrapped_func

# Return the original function if no wrapping detected
return func


# =============================================================================
Expand Down

0 comments on commit 35b30f3

Please sign in to comment.