Skip to content

Commit 2d8d52f

Browse files
committed
cleanup
1 parent 45217f5 commit 2d8d52f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/ui_backend_service/data/cache/custom_flowgraph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# which can parse a graph out of a flow_name and a source code string, instead of relying on
66
# importing the source code as a module.
77

8+
89
def deindent_docstring(doc):
910
if doc:
1011
# Find the indent to remove from the docstring. We consider the following possibilities:
@@ -42,6 +43,7 @@ def deindent_docstring(doc):
4243
else:
4344
return ""
4445

46+
4547
class StepVisitor(ast.NodeVisitor):
4648

4749
def __init__(self, nodes):
@@ -55,6 +57,7 @@ def visit_FunctionDef(self, node):
5557
doc = ast.get_docstring(node)
5658
self.nodes[node.name] = DAGNode(node, decos, doc if doc else '')
5759

60+
5861
class DAGNode(object):
5962
def __init__(self, func_ast, decos, doc):
6063
self.name = func_ast.name
@@ -141,6 +144,7 @@ def _parse(self, func_ast):
141144
except AttributeError:
142145
return
143146

147+
144148
class FlowGraph(object):
145149
# NOTE: This implementation relies on passing in the name of the FlowSpec class
146150
# to be parsed from the sourcecode.

0 commit comments

Comments
 (0)