ImportFrom AST Python Object
The ImportFromElement
captures the elements from a from
import statement.
The astType
value for this node is fromelement
.
from foo import bar as baz
Code Pattern
The ImportFromElement
object matches the code bar as baz
in the following Python import statement.
from foo import bar as baz