API reference
python:astx:astx.collections.sets.SetExpr.__init__
method __init__
__init__(elements: Sequence[Expr], loc: SourceLocation = NO_SOURCE_LOCATION) -> None
Source: packages/astx/src/astx/collections/sets.py:35
Preserve the expressions without inferring their key type.
Parameters
-
elements — Expressions contributing keys to the result.; Type: Sequence[Expr]
-
loc — Source location of the opening brace.; Type: SourceLocation
Returns
Type: None