Skip to content

Commit 9dffa88

Browse files
committed
remove debug print, update doscstring
1 parent bf79f36 commit 9dffa88

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/jsonchain/tables.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,10 @@ def flatten_tree(
160160
_current_dict={}
161161
) -> list[dict]:
162162
"""
163-
Returns a flattened list of dictionaries from the list
163+
Returns a flattened list of dictionaries from the list.
164164
165-
tree: The nested dictionary to flatten.
165+
tree: The nested dictionary to flatten. Must have the same number of
166+
depth of across all branches.
166167
level_labels: A list of strings to use as keys for each level.
167168
current_level: The current depth of the recursion.
168169
current_dict: The dictionary being built for the current path.

tests/test_jsonchain.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,4 @@ def test_flatten_tree():
8383
{"member": "a", "force": "C", "case": 2, "opta": 310, "optb": 320, "optc": 330},
8484
]
8585
flattened = flatten_tree(tree, level_labels=['member', 'force', 'case'])
86-
print(f"{flattened=}")
8786
assert flattened == flat

0 commit comments

Comments
 (0)