File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
services/ui_backend_service/data/cache Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 5
5
# which can parse a graph out of a flow_name and a source code string, instead of relying on
6
6
# importing the source code as a module.
7
7
8
+
8
9
def deindent_docstring (doc ):
9
10
if doc :
10
11
# Find the indent to remove from the docstring. We consider the following possibilities:
@@ -42,6 +43,7 @@ def deindent_docstring(doc):
42
43
else :
43
44
return ""
44
45
46
+
45
47
class StepVisitor (ast .NodeVisitor ):
46
48
47
49
def __init__ (self , nodes ):
@@ -55,6 +57,7 @@ def visit_FunctionDef(self, node):
55
57
doc = ast .get_docstring (node )
56
58
self .nodes [node .name ] = DAGNode (node , decos , doc if doc else '' )
57
59
60
+
58
61
class DAGNode (object ):
59
62
def __init__ (self , func_ast , decos , doc ):
60
63
self .name = func_ast .name
@@ -141,6 +144,7 @@ def _parse(self, func_ast):
141
144
except AttributeError :
142
145
return
143
146
147
+
144
148
class FlowGraph (object ):
145
149
# NOTE: This implementation relies on passing in the name of the FlowSpec class
146
150
# to be parsed from the sourcecode.
You can’t perform that action at this time.
0 commit comments