API reference
python:astx:astx.packages.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:426
Initialize the import-from statement.
Parameters
-
names — Type: list[AliasExpr]
-
module — Type: str
-
level — Type: int
-
loc — Type: SourceLocation
-
parent — Type: Optional[ASTNodes]