API reference
python:astx:astx.packages.ImportStmt.__init__
method __init__
__init__(names: list[AliasExpr], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None
Source: packages/astx/src/astx/packages.py:359
Initialize the import statement.
Parameters
-
names โ Type: list[AliasExpr]
-
loc โ Type: SourceLocation
-
parent โ Type: Optional[ASTNodes]