>>> red = redbaron.RedBaron("from foo import (one, two)")
>>> red.find('from_import').names()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../lib/python3.5/site-packages/redbaron/nodes.py", line 604, in names
return [x.target if x.target else x.value for x in self.targets]
File ".../lib/python3.5/site-packages/redbaron/nodes.py", line 604, in <listcomp>
return [x.target if x.target else x.value for x in self.targets]
File ".../lib/python3.5/site-packages/redbaron/base_nodes.py", line 718, in __getattr__
self.__class__.__name__, key, key))
AttributeError: LeftParenthesisNode instance has no attribute 'target' and 'target' is not a valid identifier of another node
>>>
Python 3.5.6 redbaron 0.8 installed from pip