Closed mmv closed 5 years ago
✔ Works:
import pasta tree = pasta.parse('from .uncle.package import foo')
import pasta tree = pasta.parse('from ..granduncle.package import foo')
❌ Fails:
import pasta tree = pasta.parse('from ...greatgranduncle.package import foo')
with error AnnotationError: Expected '.' but found '...'
AnnotationError: Expected '.' but found '...'
Seems to affect python3 only, my guess is that the py2 tokenizer splits the level into three separate . tokens but py3 combines them into one.
.
Thanks for reporting! Will have a fix soon.
✔ Works:
✔ Works:
❌ Fails:
with error
AnnotationError: Expected '.' but found '...'