Skip to content

Commit e0a8ef6

Browse files
committed
docstring update
1 parent 9246e03 commit e0a8ef6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python_ta/debug/accumulation_table.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)