Commit 6c1c7ed3 authored by Martin Bauer's avatar Martin Bauer
Browse files

Merge branch 'make-subexpressions-optional' into 'master'

Make subexpressions optional for constructing an AssignmentCollection

See merge request pycodegen/pystencils!3
parents a30d5181 05119269
......@@ -28,7 +28,7 @@ class AssignmentCollection:
# ------------------------------- Creation & Inplace Manipulation --------------------------------------------------
def __init__(self, main_assignments: Union[List[Assignment], Dict[sp.Expr, sp.Expr]],
subexpressions: Union[List[Assignment], Dict[sp.Expr, sp.Expr]],
subexpressions: Union[List[Assignment], Dict[sp.Expr, sp.Expr]] = {},
simplification_hints: Optional[Dict[str, Any]] = None,
subexpression_symbol_generator: Iterator[sp.Symbol] = None) -> None:
if isinstance(main_assignments, Dict):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment