google / pasta

Library to refactor python code through AST manipulation.
Apache License 2.0
341 stars 40 forks source link

Error parsing [...] #54

Closed annarev closed 5 years ago

annarev commented 5 years ago

I am running tf_upgrade_v2 tool in TensorFlow which is based on Pasta but hitting error parsing [...].

Steps to reproduce: import pasta tree = pasta.parse('foo[...] = 5')

This gives the following error: pasta.base.annotate.AnnotationError: Expected '.' but found '[' line 1: foo[...] = 5