Skip to content

Commit 71776e7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0ea8df7 commit 71776e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: machine_learning/fp_growth.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ def update_header(node_to_test: TreeNode, target_node: TreeNode) -> TreeNode:
193193
while node_to_test.node_link is not None:
194194
node_to_test = node_to_test.node_link
195195
if node_to_test.node_link is None:
196-
node_to_test.node_link = TreeNode(target_node.name, target_node.count, node_to_test)
196+
node_to_test.node_link = TreeNode(
197+
target_node.name, target_node.count, node_to_test
198+
)
197199
# Return the updated node
198200
return node_to_test
199201

0 commit comments

Comments
 (0)