API reference
python:astx:astx.ImportFromStmt.__init__
method __init__
__init__(names: list[AliasExpr], module: str = '', level: int = 0, loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/packages.py:371
Declared as: python:astx:astx.packages.ImportFromStmt.__init__
Initialize the import-from statement.
Parameters
-
names — Names.; Type: list[AliasExpr]
-
module — Module to process.; Type: str
-
level — Level.; Type: int
-
loc — Source coordinates associated with the node.; Type: SourceLocation
-
parent — Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None