Open ZdenekM opened 4 years ago
Hi @ZdenekM ,
AST produced by horast is almost identical to one produced by ast
, the problem is in different package - https://github.com/simonpercivall/astunparse/issues/47
I suggest you to upgrade to 3.9: https://docs.python.org/3.9/library/ast.html#ast.unparse
@dferens Thanks for the tip, I will give it a try!
Following simple test fails:
because tree looks like this:
Would it be possible to fix this somehow? I can probably use some temporary workaround, but it would be really nice to have this working out of the box. I'm going to generate classes/methods with docstrings.