Skip to content

Commit

Permalink
Update metaflow/graph.py
Browse files Browse the repository at this point in the history
Make compatible with configs.
  • Loading branch information
romain-intel authored Dec 17, 2024
1 parent 8840bd2 commit bb83d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaflow/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _create_nodes(self, flow):
nodes = {}
for element in dir(flow):
func = getattr(flow, element)
if hasattr(func, "is_step"):
if callable(func) and hasattr(func, "is_step"):
source_file = inspect.getsourcefile(func)
source_lines, lineno = inspect.getsourcelines(func)
source_code = textwrap.dedent("".join(source_lines))
Expand Down

0 comments on commit bb83d0c

Please sign in to comment.