ImportFrom AST Python Object
The ImportFrom
object matches a Python import.
The astType
value for this node is fromstatement
.
Code Pattern
This object catches the following code pattern
from module import name as foo
Attributes
pkg
(typeAstString
): package being importedelements
(array ofImportFromElement
): list of elements being imported