File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ class AccumulationTable:
7777 accumulation variables during each iteration in a for or while loop
7878
7979 Instance attributes:
80- _accumulator_names: a list of accumulation variable names to track (order is preserved)
80+ _accumulator_names: either a list of accumulator variable names to track across all loops,
81+ or a list of lists where each inner list contains the accumulator names for the corresponding loop
8182 loops: a list of dictionaries, one per loop, each containing:
8283 - "loop_variables": dict mapping loop variable names to their values per iteration
8384 - "loop_lineno": the line number of the loop
@@ -87,7 +88,8 @@ class AccumulationTable:
8788 """
8889
8990 _accumulator_names : Union [list [str ], list [list [str ]]]
90- """A list of accumulator variable names to track across loop iterations."""
91+ """Either a list of accumulator variable names to track across all loops,
92+ or a list of lists where each inner list contains the accumulator names for the corresponding loop."""
9193 loops : list [dict [str , Any ]]
9294 """A list of dictionaries containing loop-specific data for each loop in the with block."""
9395 output_filepath : Optional [str ]
You can’t perform that action at this time.
0 commit comments