File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- """
2
- Compile IPython Jupyter Notebooks as CWL CommandLineTools
3
- """
1
+ """Compile IPython Jupyter Notebooks as CWL CommandLineTools"""
4
2
__version__ = "0.0.4"
Original file line number Diff line number Diff line change @@ -197,8 +197,7 @@ class AnnotatedIPython2CWLToolConverter:
197
197
with the described inputs & outputs.
198
198
"""
199
199
200
- _code : str
201
- """The annotated python code to convert."""
200
+ _code : str # The annotated python code to convert.
202
201
203
202
def __init__ (self , annotated_ipython_code : str ):
204
203
"""Creates an AnnotatedIPython2CWLToolConverter. If the annotated_ipython_code contains magic commands use the
@@ -207,7 +206,8 @@ def __init__(self, annotated_ipython_code: str):
207
206
self ._code = annotated_ipython_code
208
207
extractor = AnnotatedVariablesExtractor ()
209
208
self ._tree = extractor .visit (ast .parse (self ._code ))
210
- [self ._tree .body .extend (d ) for d in extractor .to_dump ]
209
+ for d in extractor .to_dump :
210
+ self ._tree .body .extend (d )
211
211
self ._tree = ast .fix_missing_locations (self ._tree )
212
212
self ._variables = []
213
213
for variable in extractor .extracted_variables : # type: _VariableNameTypePair
You can’t perform that action at this time.
0 commit comments