API reference
python:astx:astx.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:314
Declared as: python:astx:astx.packages.ImportStmt.__init__
Initialize the import statement.
Parameters
-
names โ Names.; Type: list[AliasExpr]
-
loc โ Source coordinates associated with the node.; Type: SourceLocation
-
parent โ Parent node or enclosing scope.; Type: Optional[ASTNodes]
Returns
Type: None