You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importtyped_ast.ast3importtyped_astunparsecode='''class Snake(object): """ Om nom nom and some more nom nom nom """ def bite(me: str) -> bool: return me == 'cython''''roundtrip=typed_astunparse.unparse(typed_ast.ast3.parse(code))
print(roundtrip)
Outputs:
class Snake(object):
'\n Om nom nom\n \n and some more nom nom nom\n '
def bite(me: str) -> bool:
return (me == 'cython')
Outputs:
Use-case: I'm writing a docstring transformer
The text was updated successfully, but these errors were encountered: