API reference

python:astx:astx.comprehensions.GeneratorExpr.__init__

method __init__

__init__(element: Expr, generators: Iterable[ComprehensionClause] | ASTNodes[ComprehensionClause], loc: SourceLocation = NO_SOURCE_LOCATION, parent: Optional[ASTNodes] = None) -> None

Source: packages/astx/src/astx/comprehensions.py:333

Initialize the GeneratorExpr instance.

Parameters

Search documentation

Type to search.